use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class OpenstackNodeManagerTest method setUp.
@Before
public void setUp() {
osNodeStore = new DistributedOpenstackNodeStore();
TestUtils.setField(osNodeStore, "coreService", new TestCoreService());
TestUtils.setField(osNodeStore, "storageService", new TestStorageService());
TestUtils.setField(osNodeStore, "eventExecutor", MoreExecutors.newDirectExecutorService());
osNodeStore.activate();
osNodeStore.createNode(COMPUTE_2);
osNodeStore.createNode(COMPUTE_3);
osNodeStore.createNode(GATEWAY_1);
target = new org.onosproject.openstacknode.impl.OpenstackNodeManager();
target.storageService = new TestStorageService();
target.coreService = new TestCoreService();
target.clusterService = new TestClusterService();
target.leadershipService = new TestLeadershipService();
target.osNodeStore = osNodeStore;
target.addListener(testListener);
target.activate();
testListener.events.clear();
}
use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class DistributedDhcpRelayStoreTest method setup.
@Before
public void setup() {
store = new DistributedDhcpRelayStore();
store.storageService = new TestStorageService();
store.activated();
}
use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class DistributedAlarmStoreTest method setUp.
/**
* Sets up the device key store and the storage service test harness.
*/
@Before
public void setUp() {
alarmStore = new DistributedAlarmStore();
alarmStore.storageService = new TestStorageService();
alarmStore.setDelegate(event -> {
});
alarmStore.activate();
}
use of org.onosproject.store.service.TestStorageService 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;
}
use of org.onosproject.store.service.TestStorageService 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);
}
Aggregations