use of org.openkilda.floodlight.KildaCoreConfig in project open-kilda by telstra.
the class AbstractSpeakerCommandTest method setUp.
@Before
public void setUp() throws Exception {
injectMocks(this);
moduleContext.addService(SessionService.class, sessionService);
moduleContext.addService(IOFSwitchService.class, ofSwitchManager);
expect(commandProcessor.getModuleContext()).andReturn(moduleContext).anyTimes();
// sw
prepareSwitch(sw, dpId);
prepareSwitch(swNext, dpIdNext);
Properties configProps = new Properties();
PropertiesBasedConfigurationProvider provider = new PropertiesBasedConfigurationProvider(configProps);
KildaCoreConfig config = provider.getConfiguration(KildaCoreConfig.class);
expect(kildaCore.getConfig()).andReturn(config).anyTimes();
moduleContext.addService(KildaCore.class, kildaCore);
moduleContext.addService(FeatureDetectorService.class, featureDetectorService);
prepareSessionService();
switchSessionProducePlan.put(dpId, ImmutableList.of(session).iterator());
switchSessionProducePlan.put(dpIdNext, ImmutableList.of(session).iterator());
}
Aggregations