BUG-2637: migration final - cleanup
[controller.git] / opendaylight / md-sal / statistics-manager / src / test / java / test / mock / NodeRegistrationTest.java
diff --git a/opendaylight/md-sal/statistics-manager/src/test/java/test/mock/NodeRegistrationTest.java b/opendaylight/md-sal/statistics-manager/src/test/java/test/mock/NodeRegistrationTest.java
deleted file mode 100644 (file)
index 79eb236..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-package test.mock;
-
-import org.junit.Test;
-import org.opendaylight.controller.md.statistics.manager.StatisticsManager;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.Nodes;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
-import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
-import test.mock.util.StatisticsManagerTest;
-
-import java.util.concurrent.ExecutionException;
-
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-
-public class NodeRegistrationTest extends StatisticsManagerTest {
-
-    @Test
-    public void nodeRegistrationTest() throws ExecutionException, InterruptedException {
-        StatisticsManager statisticsManager = setupStatisticsManager();
-
-        addFlowCapableNode(s1Key);
-        Thread.sleep(2000);
-        final InstanceIdentifier<Node> nodeII = InstanceIdentifier.create(Nodes.class).child(Node.class, s1Key);
-
-        assertTrue(statisticsManager.isProvidedFlowNodeActive(nodeII));
-    }
-
-    @Test
-    public void nodeUnregistrationTest() throws ExecutionException, InterruptedException {
-        StatisticsManager statisticsManager = setupStatisticsManager();
-
-        addFlowCapableNode(s1Key);
-        Thread.sleep(2000);
-        final InstanceIdentifier<Node> nodeII = InstanceIdentifier.create(Nodes.class).child(Node.class, s1Key);
-
-        assertTrue(statisticsManager.isProvidedFlowNodeActive(nodeII));
-
-        removeNode(s1Key);
-        Thread.sleep(2000);
-        assertFalse(statisticsManager.isProvidedFlowNodeActive(nodeII));
-    }
-}
-