Topology manager - removing links with after removing termination point. 42/18342/4
authorJozef Gloncak <jgloncak@cisco.com>
Wed, 15 Apr 2015 11:56:11 +0000 (13:56 +0200)
committerJozef Gloncak <jgloncak@cisco.com>
Fri, 17 Apr 2015 13:08:45 +0000 (15:08 +0200)
commit7ca0240e8a967cf516e58f256b993c29d4841337
tree72220f5d9406ccd48adce24579b22365cc7b63b0
parentc1f808c7455586c211422071573a4a8cd46b7ba7
Topology manager - removing links with after removing termination point.

If termination point or whole node is removed then also all corresponding
links are removed from topology.

Fix of corresponding tests.
Splitting original testing class (FlowCapableTopologyExporterTest) to
- FlowCapableTopologyExporterTest
- NodeChangeListenerImplTest
- TerminationPointChangeListenerImplTest
- TestUtils.java - contains common testing methods

DataChangeListenerBase - is common ancestor for NodeChangeListenerImplTest and
TerminationPointChangeListenerImplTest

Change-Id: I051de4e5d54d50134b14f1399db9c44123990384
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
applications/topology-manager/src/main/java/org/opendaylight/openflowplugin/applications/topology/manager/FlowCapableTopologyExporter.java
applications/topology-manager/src/main/java/org/opendaylight/openflowplugin/applications/topology/manager/NodeChangeListenerImpl.java
applications/topology-manager/src/main/java/org/opendaylight/openflowplugin/applications/topology/manager/TerminationPointChangeListenerImpl.java
applications/topology-manager/src/test/java/org/opendaylight/openflowplugin/applications/topology/manager/DataChangeListenerBase.java [new file with mode: 0644]
applications/topology-manager/src/test/java/org/opendaylight/openflowplugin/applications/topology/manager/FlowCapableTopologyExporterTest.java
applications/topology-manager/src/test/java/org/opendaylight/openflowplugin/applications/topology/manager/NodeChangeListenerImplTest.java [new file with mode: 0644]
applications/topology-manager/src/test/java/org/opendaylight/openflowplugin/applications/topology/manager/TerminationPointChangeListenerImplTest.java [new file with mode: 0644]
applications/topology-manager/src/test/java/org/opendaylight/openflowplugin/applications/topology/manager/TestUtils.java [new file with mode: 0644]