aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/test/java/org/onap
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-09-04 11:57:18 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-04 11:57:18 +0000
commit086bd70f2d0e5378b2944c5b995cff87a40c0c09 (patch)
tree95b982c4e869b7a57ea04daa76682e1e825d1077 /main/src/test/java/org/onap
parentde6124af19910e5ebb1de6698843b8ab64b5931a (diff)
parent15dc61dfb2fc43c3d8b1a95e51e9cab5d18f6e81 (diff)
Merge "Set Activator alive to false in terminate"
Diffstat (limited to 'main/src/test/java/org/onap')
-rw-r--r--main/src/test/java/org/onap/policy/distribution/main/startstop/TestDistributionActivator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/test/java/org/onap/policy/distribution/main/startstop/TestDistributionActivator.java b/main/src/test/java/org/onap/policy/distribution/main/startstop/TestDistributionActivator.java
index 47ac82b1..d877e2a7 100644
--- a/main/src/test/java/org/onap/policy/distribution/main/startstop/TestDistributionActivator.java
+++ b/main/src/test/java/org/onap/policy/distribution/main/startstop/TestDistributionActivator.java
@@ -21,6 +21,7 @@
package org.onap.policy.distribution.main.startstop;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
@@ -49,6 +50,7 @@ public class TestDistributionActivator {
final DistributionActivator activator = new DistributionActivator(parGroup);
activator.initialize();
assertTrue(activator.getParameterGroup().isValid());
+ assertTrue(DistributionActivator.isAlive());
assertEquals(CommonTestData.DISTRIBUTION_GROUP_NAME, activator.getParameterGroup().getName());
assertEquals(CommonTestData.RECEPTION_HANDLER_TYPE,
activator.getParameterGroup().getReceptionHandlerParameters()
@@ -65,5 +67,6 @@ public class TestDistributionActivator {
activator.getParameterGroup().getPolicyForwarderConfigurationParameters()
.get(CommonTestData.FORWARDER_CONFIGURATION_PARAMETERS).getClass());
activator.terminate();
+ assertFalse(DistributionActivator.isAlive());
}
}