Search in sources :

Example 1 with DefaultRestSBDevice

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);
}
Also used : TestEventDispatcher(org.onosproject.common.event.impl.TestEventDispatcher) DefaultRestSBDevice(org.onosproject.protocol.rest.DefaultRestSBDevice) Before(org.junit.Before)

Example 2 with DefaultRestSBDevice

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);
}
Also used : DefaultRestSBDevice(org.onosproject.protocol.rest.DefaultRestSBDevice) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 DefaultRestSBDevice (org.onosproject.protocol.rest.DefaultRestSBDevice)2 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)1