Search in sources :

Example 1 with DistributedNetworkConfigStore

use of org.onosproject.store.config.impl.DistributedNetworkConfigStore in project onos by opennetworkinglab.

the class NetworkConfigManagerTest method setUp.

@Before
public void setUp() throws Exception {
    configStore = new DistributedNetworkConfigStore();
    TestUtils.setField(configStore, "storageService", new TestStorageService());
    configStore.activate();
    manager = new NetworkConfigManager();
    manager.store = configStore;
    NetTestTools.injectEventDispatcher(manager, new EventDeliveryServiceAdapter());
    manager.clusterService = clusterService;
    manager.activate();
    registry = manager;
    configService = manager;
}
Also used : TestStorageService(org.onosproject.store.service.TestStorageService) EventDeliveryServiceAdapter(org.onosproject.event.EventDeliveryServiceAdapter) DistributedNetworkConfigStore(org.onosproject.store.config.impl.DistributedNetworkConfigStore) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 EventDeliveryServiceAdapter (org.onosproject.event.EventDeliveryServiceAdapter)1 DistributedNetworkConfigStore (org.onosproject.store.config.impl.DistributedNetworkConfigStore)1 TestStorageService (org.onosproject.store.service.TestStorageService)1