@Before public void setUp() throws Exception { factory = OFFactories.getFactory(OFVersion.OF_13); switchId = DatapathId.of(1); timer = new HashedWheelTimer(); channel = EasyMock.createMock(Channel.class); IDebugCounterService debugCounterService = new DebugCounterServiceImpl(); debugCounterService.registerModule(OFConnectionCounters.COUNTER_MODULE); conn = new OFConnection(switchId, factory, channel, OFAuxId.MAIN, debugCounterService, timer); eventLoop = new TestEventLoop(); expect(channel.eventLoop()).andReturn(eventLoop).anyTimes(); }
@Override public OFConnection getConnectionByCategory( LogicalOFMessageCategory category) { // TODO Auto-generated method stub return null; }
/** * Get a connection specified by the logical OFMessage category * @param category the category for the connection the user desires * @return an OF Connection */ OFConnection getConnectionByCategory(LogicalOFMessageCategory category);