Search in sources :

Example 1 with SimpleTopologyStore

use of org.onosproject.store.trivial.SimpleTopologyStore in project onos by opennetworkinglab.

the class TopologyManagerTest method setUp.

@Before
public void setUp() {
    mgr = new TopologyManager();
    service = mgr;
    registry = mgr;
    mgr.store = new SimpleTopologyStore();
    injectEventDispatcher(mgr, new TestEventDispatcher());
    mgr.activate();
    service.addListener(listener);
    provider = new TestProvider();
    providerService = registry.register(provider);
    assertTrue("provider should be registered", registry.getProviders().contains(provider.id()));
}
Also used : TestEventDispatcher(org.onosproject.common.event.impl.TestEventDispatcher) SimpleTopologyStore(org.onosproject.store.trivial.SimpleTopologyStore) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)1 SimpleTopologyStore (org.onosproject.store.trivial.SimpleTopologyStore)1