summaryrefslogtreecommitdiffstats
path: root/testsuites/integration/integration-uservice-test
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@ericsson.com>2018-09-28 12:11:59 +0100
committerliamfallon <liam.fallon@ericsson.com>2018-09-28 12:12:06 +0100
commit1899306c1087d55f2e923f32a7e9ea038aa5275a (patch)
tree8cc0270f6477b138cdc2b3a4eccf6dcafad30057 /testsuites/integration/integration-uservice-test
parentd67a4dbff408ebf73a25158c85169fb7165e357e (diff)
Add unit test for core distribution
JUnit for the batch deployer and deploy facade. Issue-ID: POLICY-1034 Change-Id: I3959578ba8666d64b48bbe4ee9aeab27b92d77ae Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'testsuites/integration/integration-uservice-test')
-rw-r--r--testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java
index 5251cc078..3e5cb8721 100644
--- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java
+++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java
@@ -148,13 +148,11 @@ public class EngDepMessagingTest {
final AxPolicyModel apexPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("MVEL");
- final BatchDeployer deployer1 = new BatchDeployer("localhost", 58820);
+ final BatchDeployer deployer1 = new BatchDeployer("localhost", 58820, System.out);
assertNotNull(deployer1);
deployer1.init();
deployer1.deployModel(apexPolicyModel, false, false);
- deployer1.stopEngines();
- deployer1.startEngines();
deployer1.close();
// Send events
@@ -184,17 +182,14 @@ public class EngDepMessagingTest {
assertEquals(2, server.getTotalActionEventsReceived());
deployer1.init();
- deployer1.stopEngines();
deployer1.close();
// Test re-initialization of model
- final BatchDeployer deployer2 = new BatchDeployer("localhost", 58820);
+ final BatchDeployer deployer2 = new BatchDeployer("localhost", 58820, System.out);
assertNotNull(deployer2);
deployer2.init();
deployer2.deployModel(apexPolicyModel, true, true);
- deployer2.stopEngines();
- deployer2.startEngines();
deployer2.close();
server.sendEvent(event0);
@@ -209,7 +204,6 @@ public class EngDepMessagingTest {
assertEquals(4, server.getTotalActionEventsReceived());
deployer2.init();
- deployer2.stopEngines();
deployer2.close();
server.stopServer();