X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ONAP-PDP%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fxacml%2Faction%2FFindActionTest.java;h=5403f8ff14c58b32d499b98e7ac02f503c47f6e0;hp=93cb28546ee448a2adbd5522b47e4e6f9a7054bd;hb=31c37b0e94150b3bace65cf865cefd91d869e1c2;hpb=1ecf9de8c889adb2dbc9ddd9a79d28e1da89d87b diff --git a/ONAP-PDP/src/test/java/org/onap/policy/xacml/action/FindActionTest.java b/ONAP-PDP/src/test/java/org/onap/policy/xacml/action/FindActionTest.java index 93cb28546..5403f8ff1 100644 --- a/ONAP-PDP/src/test/java/org/onap/policy/xacml/action/FindActionTest.java +++ b/ONAP-PDP/src/test/java/org/onap/policy/xacml/action/FindActionTest.java @@ -46,7 +46,6 @@ import org.junit.Before; 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.xacml.custom.OnapFunctionDefinitionFactory; @@ -69,8 +68,8 @@ public class FindActionTest { @BeforeClass public static void setUpServer() { try { - final HttpServletServer testServer = IndexedHttpServletServerFactory.getInstance().build("dmaapSim", - "localhost", MOCK_SERVER_PORT, "/", false, true); + final HttpServletServer testServer = + HttpServletServer.factory.build("dmaapSim", "localhost", MOCK_SERVER_PORT, "/", false, true); testServer.addServletClass("/*", DummyRest.class.getName()); testServer.waitedStart(2000); if (!NetworkUtil.isTcpPortOpen("localhost", testServer.getPort(), 5, 10000L)) { @@ -84,7 +83,7 @@ public class FindActionTest { @AfterClass public static void tearDownSimulator() { - IndexedHttpServletServerFactory.getInstance().destroy(); + HttpServletServer.factory.destroy(); } /**