aboutsummaryrefslogtreecommitdiffstats
path: root/services/services-onappf/src/test
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2019-04-10 14:46:18 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-10 14:46:18 +0000
commit4e55d4e186ce4dfdcd49f992841a52abe1b62369 (patch)
treeee3dea19c4d36f83f54f5a7ac3d79aed24250250 /services/services-onappf/src/test
parent20b67a6e8cd07b7e49a7725288d95fb66dcebae0 (diff)
parentb6505e6ef2236fec91d010ff789ce19c6450484a (diff)
Merge "Some changes and bug fixes for PdpMessage handling"
Diffstat (limited to 'services/services-onappf/src/test')
-rw-r--r--services/services-onappf/src/test/java/org/onap/policy/apex/starter/comm/TestPdpStateChangeListener.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/services/services-onappf/src/test/java/org/onap/policy/apex/starter/comm/TestPdpStateChangeListener.java b/services/services-onappf/src/test/java/org/onap/policy/apex/starter/comm/TestPdpStateChangeListener.java
index b25d473da..d0a85f9f2 100644
--- a/services/services-onappf/src/test/java/org/onap/policy/apex/starter/comm/TestPdpStateChangeListener.java
+++ b/services/services-onappf/src/test/java/org/onap/policy/apex/starter/comm/TestPdpStateChangeListener.java
@@ -168,18 +168,4 @@ public class TestPdpStateChangeListener {
assertEquals(pdpStatus.getState(), pdpStateChangeMsg.getState());
}
-
- @Test
- public void testPdpStateChangeMessageListener_passivetoterminated() {
- final PdpStatus pdpStatus = Registry.get(ApexStarterConstants.REG_PDP_STATUS_OBJECT);
- pdpStatus.setState(PdpState.PASSIVE);
- performPdpUpdate(pdpStatus.getName());
- final PdpStateChange pdpStateChangeMsg = new PdpStateChange();
- pdpStateChangeMsg.setState(PdpState.TERMINATED);
- pdpStateChangeMsg.setPdpGroup("pdpGroup");
- pdpStateChangeMsg.setPdpSubgroup("pdpSubgroup");
- pdpStateChangeMsg.setName(pdpStatus.getName());
- pdpStateChangeListener.onTopicEvent(INFRA, TOPIC, null, pdpStateChangeMsg);
- assertEquals(pdpStatus.getState(), PdpState.PASSIVE);
- }
}