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();
}
Aggregations