- protected void existingTopWriteTwoNested(final DatastoreTestTask task) throws InterruptedException, ExecutionException {
- Future<?> future = task.getChangeEvent();
- /*
- * One listener should be notified only and only if actual node changed its state,
- * since deletion of nested child (in this case /nested-list/nested-list[foo],
- * did not result in change of node we are listening
- * for, we should not be getting data change event
- * and this means settable future containing receivedDataChangeEvent is not done.
- *
- */
- assertFalse(future.isDone());
+ protected void existingTopWriteTwoNestedVerify(final DatastoreTestTask task) {
+ task.verifyChangeEvents();