Resubmitted with source code synchronized. Added integration test for hosttracker...
[controller.git] / opendaylight / arphandler / src / test / java / org / opendaylight / controller / arphandler / internal / ArphandlerTest.java
index b863d2b92383c7bd404773c76f5e15e7d4b444fc..e4e17cb2d64efa717f8348e8b2f94290609ab121 100644 (file)
@@ -15,11 +15,8 @@ import org.junit.Test;
 import junit.framework.TestCase;\r
 \r
 import org.opendaylight.controller.hosttracker.IfIptoHost;\r
-import org.opendaylight.controller.hosttracker.HostTracker;\r
 \r
 import org.opendaylight.controller.switchmanager.ISwitchManager;\r
-import org.opendaylight.controller.switchmanager.internal.SwitchManagerImpl;\r
-\r
 \r
 public class ArphandlerTest extends TestCase {\r
         \r
@@ -30,23 +27,6 @@ public class ArphandlerTest extends TestCase {
                ah = new ArpHandler();\r
                Assert.assertTrue(ah != null);\r
                        \r
-               HostTracker hostTracker = null;\r
-               hostTracker = new HostTracker();\r
-               ah.setHostTracker(hostTracker);\r
-               IfIptoHost ht= ah.getHostTracker();\r
-               Assert.assertTrue(ht.equals(hostTracker));\r
-               ah.unsetHostTracker(hostTracker);\r
-               ht= ah.getHostTracker();\r
-               Assert.assertTrue(ht == null);\r
-               \r
-               ah.setHostListener(hostTracker);\r
-               ah.unsetHostListener(hostTracker);\r
-               \r
-               ISwitchManager swManager = new SwitchManagerImpl();\r
-               ah.setSwitchManager(swManager);\r
-               ah.unsetSwitchManager(swManager);\r
-               \r
        }\r
 \r
-\r
 }\r