From 1899306c1087d55f2e923f32a7e9ea038aa5275a Mon Sep 17 00:00:00 2001 From: liamfallon Date: Fri, 28 Sep 2018 12:11:59 +0100 Subject: 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 --- .../integration/uservice/engdep/EngDepMessagingTest.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'testsuites/integration/integration-uservice-test/src') 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(); -- cgit 1.2.3-korg