use of org.opendaylight.controller.cluster.datastore.utils.MockDataTreeChangeListener in project controller by opendaylight.
the class DataTreeChangeListenerSupportTest method testInitialChangeListenerEventWithListPath.
@Test
public void testInitialChangeListenerEventWithListPath() throws DataValidationFailedException {
mergeToStore(shard.getDataStore(), TEST_PATH, testNodeWithOuter(1, 2));
MockDataTreeChangeListener listener = registerChangeListener(OUTER_LIST_PATH, 1).getKey();
listener.waitForChangeEvents();
listener.verifyNotifiedData(OUTER_LIST_PATH);
}
use of org.opendaylight.controller.cluster.datastore.utils.MockDataTreeChangeListener in project controller by opendaylight.
the class DataTreeChangeListenerSupportTest method testChangeListenerWithNoInitialData.
@Test
public void testChangeListenerWithNoInitialData() {
MockDataTreeChangeListener listener = registerChangeListener(TEST_PATH, 0).getKey();
listener.expectNoMoreChanges("Unexpected initial change event");
}
Aggregations