@Before public void setUp() { coreService = createMock(CoreService.class); expect(coreService.registerApplication(appId.name())).andReturn(appId).anyTimes(); replay(coreService); provider.cfgService = new ComponentConfigAdapter(); provider.coreService = coreService; provider.providerRegistry = hostRegistry; provider.topologyService = topoService; provider.packetService = packetService; provider.deviceService = deviceService; provider.hostService = hostService; provider.activate(CTX_FOR_NO_REMOVE); }
@After public void tearDown() { provider.deactivate(); provider.coreService = null; provider.providerRegistry = null; }