From b6505e6ef2236fec91d010ff789ce19c6450484a Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Tue, 9 Apr 2019 20:48:32 +0000 Subject: Some changes and bug fixes for PdpMessage handling 1) Updating pom file of services-onappf to fix dependency related issues. 2) Some changes to accomodate recent updates. 3) Fix for some issues identified during testing. Change-Id: I8150ed9858902ebbe12321a793770df3fdc7e773 Issue-ID: POLICY-1453 Signed-off-by: a.sreekumar --- .../apex/starter/comm/TestPdpStateChangeListener.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'services/services-onappf/src/test/java/org') 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); - } } -- cgit 1.2.3-korg