diff options
Diffstat (limited to 'feature-simulators')
-rw-r--r-- | feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorTest.java b/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorTest.java index 1ba2fc44..1a19284b 100644 --- a/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorTest.java +++ b/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorTest.java @@ -37,7 +37,6 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.onap.policy.common.endpoints.http.server.HttpServletServer; -import org.onap.policy.common.endpoints.http.server.impl.IndexedHttpServletServerFactory; import org.onap.policy.common.utils.network.NetworkUtil; import org.onap.policy.drools.utils.logging.LoggerUtil; @@ -50,8 +49,8 @@ public class DMaaPSimulatorTest { LoggerUtil.setLevel("ROOT", "INFO"); LoggerUtil.setLevel("org.eclipse.jetty", "WARN"); try { - final HttpServletServer testServer = IndexedHttpServletServerFactory.getInstance().build("dmaapSim", - "localhost", DMAAPSIM_SERVER_PORT, "/", false, true); + final HttpServletServer testServer = + HttpServletServer.factory.build("dmaapSim", "localhost", DMAAPSIM_SERVER_PORT, "/", false, true); testServer.addServletClass("/*", DMaaPSimulatorJaxRs.class.getName()); testServer.waitedStart(5000); if (!NetworkUtil.isTcpPortOpen("localhost", testServer.getPort(), 5, 10000L)) { @@ -64,7 +63,7 @@ public class DMaaPSimulatorTest { @AfterClass public static void tearDownSimulator() { - IndexedHttpServletServerFactory.getInstance().destroy(); + HttpServletServer.factory.destroy(); } @Test |