use of org.onosproject.store.trivial.SimpleHostStore in project onos by opennetworkinglab.
the class HostManagerTest method setUp.
@Before
public void setUp() {
mgr = new HostManager();
mgr.store = new SimpleHostStore();
injectEventDispatcher(mgr, new TestEventDispatcher());
registry = mgr;
mgr.networkConfigService = new TestNetworkConfigService();
mgr.cfgService = new ComponentConfigAdapter();
mgr.activate(REMOVE_DUPS_MONITOR);
mgr.addListener(listener);
provider = new TestHostProvider(PID);
provider2 = new TestHostProvider(PID2);
providerService = registry.register(provider);
providerService2 = registry.register(provider2);
assertTrue("provider should be registered", registry.getProviders().contains(provider.id()));
assertTrue("provider2 should be registered", registry.getProviders().contains(provider2.id()));
}
Aggregations