Search in sources :

Example 6 with OFDescStatsReplyAdapter

use of org.onosproject.openflow.OFDescStatsReplyAdapter in project onos by opennetworkinglab.

the class ControllerTest method driverExistsTest.

/**
 * Tests fetching a driver that throws an ItemNotFoundException.
 */
@Test
public void driverExistsTest() {
    controller.start(null, new MockDriverService(), null);
    OFDescStatsReply stats = new OFDescStatsReplyAdapter();
    OpenFlowSwitchDriver driver = controller.getOFSwitchInstance(MockDriverService.DRIVER_EXISTS_ID, stats, null);
    assertThat(driver, notNullValue());
    controller.stop();
}
Also used : OFDescStatsReply(org.projectfloodlight.openflow.protocol.OFDescStatsReply) OpenFlowSwitchDriver(org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver) OFDescStatsReplyAdapter(org.onosproject.openflow.OFDescStatsReplyAdapter) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 OFDescStatsReplyAdapter (org.onosproject.openflow.OFDescStatsReplyAdapter)6 OFDescStatsReply (org.projectfloodlight.openflow.protocol.OFDescStatsReply)6 OpenflowSwitchDriverAdapter (org.onosproject.openflow.OpenflowSwitchDriverAdapter)4 MockOfPortStatus (org.onosproject.openflow.MockOfPortStatus)2 OpenFlowSwitchDriver (org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver)2