Search in sources :

Example 1 with DistributedDeviceKeyStore

use of org.onosproject.store.key.impl.DistributedDeviceKeyStore in project onos by opennetworkinglab.

the class DeviceKeyManagerTest method setUp.

@Before
public void setUp() throws Exception {
    deviceKeyStore = new DistributedDeviceKeyStore();
    TestUtils.setField(deviceKeyStore, "storageService", new TestStorageService());
    deviceKeyStore.activate();
    manager = new DeviceKeyManager();
    manager.store = deviceKeyStore;
    manager.addListener(listener);
    NetTestTools.injectEventDispatcher(manager, new TestEventDispatcher());
    manager.activate();
    deviceKeyService = manager;
}
Also used : TestEventDispatcher(org.onosproject.common.event.impl.TestEventDispatcher) DistributedDeviceKeyStore(org.onosproject.store.key.impl.DistributedDeviceKeyStore) TestStorageService(org.onosproject.store.service.TestStorageService) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)1 DistributedDeviceKeyStore (org.onosproject.store.key.impl.DistributedDeviceKeyStore)1 TestStorageService (org.onosproject.store.service.TestStorageService)1