use of org.onosproject.common.event.impl.TestEventDispatcher in project onos by opennetworkinglab.
the class AlarmManagerTest method setUp.
@Before
public void setUp() throws Exception {
alarmStore = new DistributedAlarmStore();
TestUtils.setField(alarmStore, "storageService", new TestStorageService());
alarmStore.activate();
manager = new AlarmManager();
registry = manager;
manager.addListener(listener);
NetTestTools.injectEventDispatcher(manager, new TestEventDispatcher());
manager.deviceService = deviceService;
manager.mastershipService = mastershipService;
manager.store = alarmStore;
manager.activate();
provider = new TestProvider();
providerService = registry.register(provider);
}
Aggregations