summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-07-31 19:36:26 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-31 19:36:26 +0000
commit7a6c4f9214a71101db3354ed06ccd3cfd3cea65b (patch)
treec052947818f3a98831482e8cff20a45758217930
parente31e46738ca14c18a00773e598df6639154aa1f2 (diff)
parent31c37b0e94150b3bace65cf865cefd91d869e1c2 (diff)
Merge "Copy policy-endpoints from drools-pdp to common"
-rw-r--r--ONAP-PDP/src/test/java/org/onap/policy/xacml/action/FindActionTest.java7
1 files changed, 3 insertions, 4 deletions
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();
}
/**