Search in sources :

Example 1 with DistributedMcastStore

use of org.onosproject.store.mcast.impl.DistributedMcastStore in project onos by opennetworkinglab.

the class MulticastRouteManagerTest method setUp.

@Before
public void setUp() throws Exception {
    manager = new MulticastRouteManager();
    mcastStore = new DistributedMcastStore();
    TestUtils.setField(mcastStore, "storageService", new TestStorageService());
    injectEventDispatcher(manager, new TestEventDispatcher());
    events = Lists.newArrayList();
    manager.store = mcastStore;
    mcastStore.activate();
    manager.activate();
    manager.addListener(listener);
}
Also used : TestEventDispatcher(org.onosproject.common.event.impl.TestEventDispatcher) DistributedMcastStore(org.onosproject.store.mcast.impl.DistributedMcastStore) TestStorageService(org.onosproject.store.service.TestStorageService) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)1 DistributedMcastStore (org.onosproject.store.mcast.impl.DistributedMcastStore)1 TestStorageService (org.onosproject.store.service.TestStorageService)1