commit | cedd0dffd02034361f49aacfee1b38afe4616623 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Tue Aug 23 11:44:13 2016 -0700 |
committer | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Tue Aug 23 11:44:13 2016 -0700 |
tree | 997d25df79ff851370a8d6d0e33899cc6ba1b9c7 | |
parent | ad0c990e6c8897d004338ef33be3d696e413c93e [diff] [blame] |
Disconnect switch when Device was admin removed. Change-Id: I8d55eda686d29b43540f5467739983564afde5af
diff --git a/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OpenFlowControllerImplTest.java b/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OpenFlowControllerImplTest.java index d475ba1..8aa53ef 100644 --- a/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OpenFlowControllerImplTest.java +++ b/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OpenFlowControllerImplTest.java
@@ -33,6 +33,7 @@ import org.onlab.junit.TestTools; import org.onosproject.cfg.ComponentConfigService; import org.onosproject.core.CoreService; +import org.onosproject.net.device.DeviceServiceAdapter; import org.onosproject.openflow.OpenflowSwitchDriverAdapter; import org.onosproject.openflow.controller.Dpid; import org.onosproject.openflow.controller.OpenFlowSwitch; @@ -143,6 +144,8 @@ controller.cfgService = mockConfigService; replay(mockConfigService); + controller.deviceService = new DeviceServiceAdapter(); + ComponentContext mockContext = EasyMock.createMock(ComponentContext.class); Dictionary<String, Object> properties = new Hashtable<>(); properties.put("openflowPorts",