diff options
Diffstat (limited to 'src/test/java/org/onap/dcae/controller/ConfigCBSSourceTest.java')
-rw-r--r-- | src/test/java/org/onap/dcae/controller/ConfigCBSSourceTest.java | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/test/java/org/onap/dcae/controller/ConfigCBSSourceTest.java b/src/test/java/org/onap/dcae/controller/ConfigCBSSourceTest.java index 336788a9..bee2ccee 100644 --- a/src/test/java/org/onap/dcae/controller/ConfigCBSSourceTest.java +++ b/src/test/java/org/onap/dcae/controller/ConfigCBSSourceTest.java @@ -20,19 +20,16 @@ */ package org.onap.dcae.controller; -import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; -import static com.github.tomakehurst.wiremock.client.WireMock.get; -import static com.github.tomakehurst.wiremock.client.WireMock.stubFor; -import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; -import static org.assertj.core.api.Java6Assertions.assertThat; -import static org.onap.dcae.TestingUtilities.assertFailureHasInfo; -import static org.onap.dcae.controller.ConfigSource.getAppConfig; - import io.vavr.control.Try; import org.json.JSONObject; import org.junit.Test; import org.onap.dcae.WiremockBasedTest; +import static com.github.tomakehurst.wiremock.client.WireMock.*; +import static org.assertj.core.api.Java6Assertions.assertThat; +import static org.onap.dcae.TestingUtilities.assertFailureHasInfo; +import static org.onap.dcae.controller.ConfigSource.getAppConfig; + public class ConfigCBSSourceTest extends WiremockBasedTest { @Test @@ -82,7 +79,7 @@ public class ConfigCBSSourceTest extends WiremockBasedTest { // given String notAListCatalog = "" + "{" - + "\"ServiceAddress\":\"http://localhost\"," + + "\"ServiceAddress\":\"localhost\"," + "\"ServicePort\":" + wireMockRule.port() + "}"; @@ -145,7 +142,7 @@ public class ConfigCBSSourceTest extends WiremockBasedTest { } private Try<JSONObject> tryToGetConfig() { - return getAppConfig(new EnvProps("http://localhost", wireMockRule.port(), "CBSName", "VESCollector")); + return getAppConfig(new EnvProps("http", "localhost", wireMockRule.port(), "http", "CBSName", "VESCollector")); } } |