diff options
Diffstat (limited to 'src/test/java/org/onap/dcae/controller/EnvPropsTest.java')
-rw-r--r-- | src/test/java/org/onap/dcae/controller/EnvPropsTest.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/test/java/org/onap/dcae/controller/EnvPropsTest.java b/src/test/java/org/onap/dcae/controller/EnvPropsTest.java index e9c194e..1276e6b 100644 --- a/src/test/java/org/onap/dcae/controller/EnvPropsTest.java +++ b/src/test/java/org/onap/dcae/controller/EnvPropsTest.java @@ -20,22 +20,25 @@ package org.onap.dcae.controller; +import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig; +import static org.junit.Assert.assertEquals; + import com.github.tomakehurst.wiremock.junit.WireMockRule; -import junit.framework.Assert; import org.junit.Rule; import org.junit.Test; -import org.onap.dcae.common.Format; - -import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig; -import static org.junit.Assert.assertEquals; public class EnvPropsTest { + @Rule public WireMockRule wireMockRule = new WireMockRule( wireMockConfig().dynamicPort().dynamicHttpsPort().keystorePath(null)); + @Test public void fromString() { - Assert.assertEquals(new EnvProps("http", "localhost", wireMockRule.port(), "http", "CBSName", "restconfcollector").equals(new EnvProps("http", "localhost", wireMockRule.port(), "http", "CBSName", "restconfcollector")), true); + assertEquals(new EnvProps("http", "localhost", wireMockRule.port(), + "http", "CBSName", "restconfcollector") + .equals(new EnvProps("http", "localhost", wireMockRule.port(), + "http", "CBSName", "restconfcollector")), true); } }
\ No newline at end of file |