use of org.onosproject.protocol.rest.DefaultRestSBDevice in project onos by opennetworkinglab.
the class RestSBControllerImplTest method setUpTest.
@Before
public void setUpTest() {
controller = new RestSBControllerImpl();
TestUtils.setField(controller, "eventDispatcher", new TestEventDispatcher());
controller.activate();
device1 = new DefaultRestSBDevice(IpAddress.valueOf("127.0.0.1"), 18080, "foo", "bar", "http", null, true);
device2 = new DefaultRestSBDevice(IpAddress.valueOf("127.0.0.2"), 18080, "foo1", "bar2", "http", null, true);
controller.addDevice(device1);
}
use of org.onosproject.protocol.rest.DefaultRestSBDevice in project onos by opennetworkinglab.
the class RestConfSBControllerImplTest method setUp.
@Before
public void setUp() {
restConfController = new RestConfSBControllerImpl();
restConfController.activate();
device3 = new DefaultRestSBDevice(IpAddress.valueOf("127.0.0.1"), 8181, "", "", "http", null, true);
restConfController.addDevice(device3);
}
Aggregations