use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class K8sIngressManagerTest method setUp.
@Before
public void setUp() throws Exception {
k8sIngressStore = new DistributedK8sIngressStore();
TestUtils.setField(k8sIngressStore, "coreService", new TestCoreService());
TestUtils.setField(k8sIngressStore, "storageService", new TestStorageService());
TestUtils.setField(k8sIngressStore, "eventExecutor", MoreExecutors.newDirectExecutorService());
k8sIngressStore.activate();
target = new K8sIngressManager();
TestUtils.setField(target, "coreService", new TestCoreService());
target.k8sIngressStore = k8sIngressStore;
target.addListener(testListener);
target.activate();
}
use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class K8sNetworkManagerTest method setUp.
@Before
public void setUp() throws Exception {
k8sNetworkStore = new DistributedK8sNetworkStore();
TestUtils.setField(k8sNetworkStore, "coreService", new TestCoreService());
TestUtils.setField(k8sNetworkStore, "storageService", new TestStorageService());
TestUtils.setField(k8sNetworkStore, "eventExecutor", MoreExecutors.newDirectExecutorService());
k8sNetworkStore.activate();
target = new K8sNetworkManager();
TestUtils.setField(target, "coreService", new TestCoreService());
target.k8sNetworkStore = k8sNetworkStore;
target.addListener(testListener);
target.activate();
}
use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class K8sServiceManagerTest method setUp.
@Before
public void setUp() throws Exception {
k8sServiceStore = new DistributedK8sServiceStore();
TestUtils.setField(k8sServiceStore, "coreService", new TestCoreService());
TestUtils.setField(k8sServiceStore, "storageService", new TestStorageService());
TestUtils.setField(k8sServiceStore, "eventExecutor", MoreExecutors.newDirectExecutorService());
k8sServiceStore.activate();
target = new K8sServiceManager();
TestUtils.setField(target, "coreService", new TestCoreService());
target.k8sServiceStore = k8sServiceStore;
target.addListener(testListener);
target.activate();
}
use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class DistributedComponentConfigStoreTest method setUp.
/**
* Sets up the device key store and the storage service test harness.
*/
@Before
public void setUp() {
store = new TestStore();
store.storageService = new TestStorageService();
store.setDelegate(e -> this.event = e);
store.activate();
}
use of org.onosproject.store.service.TestStorageService in project onos by opennetworkinglab.
the class DistributedFlowObjectiveStoreTest method setUp.
@Before
public void setUp() {
storeImpl = new DistributedFlowObjectiveStore();
storeImpl.storageService = new TestStorageService();
storeImpl.activate();
store = storeImpl;
}
Aggregations