X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-backend%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fportal%2Fnonrtric%2Fcontrolpanel%2Futil%2FAsyncRestClientTest.java;h=f6688031bb331f5a0d93147e8ed3f5cd3ea95ab2;hb=f34ec0823b56ceaf7a6073be6fc530b0d432b37d;hp=f89895690bdd95b01e38eb9c78911374654041c7;hpb=5a1021b3264044b0f329f11ace6dc9e8a9c5d3fe;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-backend/src/test/java/org/oransc/portal/nonrtric/controlpanel/util/AsyncRestClientTest.java b/webapp-backend/src/test/java/org/oransc/portal/nonrtric/controlpanel/util/AsyncRestClientTest.java index f898956..f668803 100644 --- a/webapp-backend/src/test/java/org/oransc/portal/nonrtric/controlpanel/util/AsyncRestClientTest.java +++ b/webapp-backend/src/test/java/org/oransc/portal/nonrtric/controlpanel/util/AsyncRestClientTest.java @@ -20,7 +20,14 @@ package org.oransc.portal.nonrtric.controlpanel.util; +import io.netty.util.internal.logging.InternalLoggerFactory; +import io.netty.util.internal.logging.JdkLoggerFactory; + import java.io.IOException; + +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; + import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -28,10 +35,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.reactive.function.client.WebClientResponseException; -import io.netty.util.internal.logging.InternalLoggerFactory; -import io.netty.util.internal.logging.JdkLoggerFactory; -import okhttp3.mockwebserver.MockResponse; -import okhttp3.mockwebserver.MockWebServer; + import reactor.core.publisher.Mono; import reactor.test.StepVerifier; import reactor.util.Loggers; @@ -40,8 +44,6 @@ class AsyncRestClientTest { private static final String BASE_URL = "BaseUrl"; private static final String REQUEST_URL = "/test"; private static final String TEST_JSON = "{\"type\":\"type1\"}"; - private static final String USERNAME = "user"; - private static final String PASSWORD = "pass"; private static final int SUCCESS_CODE = 200; private static final int ERROR_CODE = 500;