use of org.openkilda.floodlight.config.provider.FloodlightModuleConfigurationProvider in project open-kilda by telstra.
the class PingServiceTest method setUp.
@Before
public void setUp() {
injectMocks(this);
KildaCore kildaCore = EasyMock.createMock(KildaCore.class);
FloodlightModuleConfigurationProvider provider = FloodlightModuleConfigurationProvider.of(moduleContext, KildaCore.class);
KildaCoreConfig coreConfig = provider.getConfiguration(KildaCoreConfig.class);
expect(kildaCore.getConfig()).andStubReturn(coreConfig);
EasyMock.replay(kildaCore);
moduleContext.addService(KildaCore.class, kildaCore);
moduleContext.addService(IOFSwitchService.class, createMock(IOFSwitchService.class));
moduleContext.addService(InputService.class, createMock(InputService.class));
moduleContext.addService(ISwitchManager.class, createMock(ISwitchManager.class));
moduleContext.addConfigParam(pathVerificationService, "hmac256-secret", "secret");
}
Aggregations