import static org.junit.Assert.assertNotNull;
import static org.opendaylight.controller.cluster.datastore.DataStoreVersions.CURRENT_VERSION;
+import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.EMPTY_TEST;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.ID_QNAME;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.INNER_LIST_QNAME;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.NAME_QNAME;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.OUTER_LIST_PATH;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.OUTER_LIST_QNAME;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.TEST_PATH;
-import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.TEST_QNAME;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.innerEntryPath;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.innerMapPath;
import static org.opendaylight.controller.md.cluster.datastore.model.TestModel.innerNode;
// Ready [tx1, tx2] on shard A.
- shardA.tell(newReadyBatchedModifications(txId1, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames), kit1.getRef());
+ shardA.tell(newReadyBatchedModifications(txId1, TEST_PATH, EMPTY_TEST, participatingShardNames), kit1.getRef());
kit1.expectMsgClass(ReadyTransactionReply.class);
shardA.tell(newReadyBatchedModifications(txId2, OUTER_LIST_PATH, outerNode(1),
participatingShardNames), kit2.getRef());
kit2.expectMsgClass(ReadyTransactionReply.class);
- shardB.tell(newReadyBatchedModifications(txId1, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames), kit1.getRef());
+ shardB.tell(newReadyBatchedModifications(txId1, TEST_PATH, EMPTY_TEST, participatingShardNames), kit1.getRef());
kit1.expectMsgClass(ReadyTransactionReply.class);
// Send tx2 CanCommit to A - tx1 is at the head of the queue so tx2 should not proceed as A is the first shard
// Ready [tx3, tx4, tx5] on shard A.
- shardA.tell(newReadyBatchedModifications(txId3, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames1), kit3.getRef());
+ shardA.tell(newReadyBatchedModifications(txId3, TEST_PATH, EMPTY_TEST, participatingShardNames1),
+ kit3.getRef());
kit3.expectMsgClass(ReadyTransactionReply.class);
shardA.tell(newReadyBatchedModifications(txId4, OUTER_LIST_PATH, outerMapNode(),
// Ready [tx1, tx2, tx5, tx4, tx3] on shard B.
- shardB.tell(newReadyBatchedModifications(txId1, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames2), kit1.getRef());
+ shardB.tell(newReadyBatchedModifications(txId1, TEST_PATH, EMPTY_TEST, participatingShardNames2),
+ kit1.getRef());
kit1.expectMsgClass(ReadyTransactionReply.class);
shardB.tell(newReadyBatchedModifications(txId2, OUTER_LIST_PATH, outerMapNode(),
// Ready [tx1] on shard A.
- shardA.tell(newReadyBatchedModifications(txId1, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames1), kit1.getRef());
+ shardA.tell(newReadyBatchedModifications(txId1, TEST_PATH, EMPTY_TEST, participatingShardNames1),
+ kit1.getRef());
kit1.expectMsgClass(ReadyTransactionReply.class);
// Ready [tx2] on shard B.
- shardB.tell(newReadyBatchedModifications(txId2, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames2), kit2.getRef());
+ shardB.tell(newReadyBatchedModifications(txId2, TEST_PATH, EMPTY_TEST, participatingShardNames2),
+ kit2.getRef());
kit2.expectMsgClass(ReadyTransactionReply.class);
// Ready [tx2, tx1] on shard C.
- shardC.tell(newReadyBatchedModifications(txId2, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames2), kit2.getRef());
+ shardC.tell(newReadyBatchedModifications(txId2, TEST_PATH, EMPTY_TEST, participatingShardNames2),
+ kit2.getRef());
kit2.expectMsgClass(ReadyTransactionReply.class);
shardC.tell(newReadyBatchedModifications(txId1, OUTER_LIST_PATH, outerNode(1),
// Ready [tx1] on shard A.
- shardA.tell(newReadyBatchedModifications(txId1, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames1), kit1.getRef());
+ shardA.tell(newReadyBatchedModifications(txId1, TEST_PATH, EMPTY_TEST, participatingShardNames1),
+ kit1.getRef());
kit1.expectMsgClass(ReadyTransactionReply.class);
// Ready [tx2, tx1] on shard B.
- shardB.tell(newReadyBatchedModifications(txId2, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames2), kit2.getRef());
+ shardB.tell(newReadyBatchedModifications(txId2, TEST_PATH, EMPTY_TEST, participatingShardNames2),
+ kit2.getRef());
kit2.expectMsgClass(ReadyTransactionReply.class);
shardB.tell(newReadyBatchedModifications(txId1, OUTER_LIST_PATH, outerNode(1),
// Ready [tx2] on shard C.
- shardC.tell(newReadyBatchedModifications(txId2, TEST_PATH,
- ImmutableNodes.containerNode(TEST_QNAME), participatingShardNames2), kit2.getRef());
+ shardC.tell(newReadyBatchedModifications(txId2, TEST_PATH, EMPTY_TEST, participatingShardNames2),
+ kit2.getRef());
kit2.expectMsgClass(ReadyTransactionReply.class);
// Send tx1 CanCommit to A - should succeed.
replyPath.matches("pekko:\\/\\/test\\/user\\/testRegisterDataTreeChangeListener\\/\\$.*"));
final YangInstanceIdentifier path = TestModel.TEST_PATH;
- writeToStore(shard, path, containerNode(TestModel.TEST_QNAME));
+ writeToStore(shard, path, TestModel.EMPTY_TEST);
listener.waitForChangeEvents();
listener.verifyOnInitialDataEvent();
SCHEMA_CONTEXT);
final DataTreeModification writeMod = store.takeSnapshot().newModification();
- final ContainerNode node = containerNode(TestModel.TEST_QNAME);
+ final ContainerNode node = TestModel.EMPTY_TEST;
writeMod.write(TestModel.TEST_PATH, node);
writeMod.ready();
final CapturingShardDataTreeCohort cohort2 = cohortMap.get(transactionID2);
final CapturingShardDataTreeCohort cohort3 = cohortMap.get(transactionID3);
- shard.tell(prepareBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false), testKit.getRef());
+ shard.tell(prepareBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, false),
+ testKit.getRef());
final ReadyTransactionReply readyReply = ReadyTransactionReply
.fromSerializable(testKit.expectMsgClass(duration, ReadyTransactionReply.class));
// Send a BatchedModifications to start a transaction.
- shard.tell(newBatchedModifications(transactionID, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID, TestModel.TEST_PATH, TestModel.EMPTY_TEST, false, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, BatchedModificationsReply.class);
// Send a couple more BatchedModifications.
// Send a BatchedModifications to start a transaction.
- shard.tell(newBatchedModifications(transactionID, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID, TestModel.TEST_PATH, TestModel.EMPTY_TEST, false, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, BatchedModificationsReply.class);
// Send a couple more BatchedModifications.
// Send a BatchedModifications to start a chained write
// transaction and ready it.
- final ContainerNode containerNode = containerNode(TestModel.TEST_QNAME);
+ final ContainerNode containerNode = TestModel.EMPTY_TEST;
final YangInstanceIdentifier path = TestModel.TEST_PATH;
shard.tell(newBatchedModifications(transactionID1, path, containerNode, true, false, 1), testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
Failure failure = testKit.expectMsgClass(Failure.class);
assertEquals("Failure cause type", NoShardLeaderException.class, failure.cause().getClass());
- shard.tell(prepareForwardedReadyTransaction(shard, txId, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true), testKit.getRef());
+ shard.tell(prepareForwardedReadyTransaction(shard, txId, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true),
+ testKit.getRef());
failure = testKit.expectMsgClass(Failure.class);
assertEquals("Failure cause type", NoShardLeaderException.class, failure.cause().getClass());
ShardTestKit.waitUntilLeader(shard);
final TransactionIdentifier transactionID = nextTransactionId();
- final NormalizedNode containerNode = containerNode(TestModel.TEST_QNAME);
+ final var containerNode = TestModel.EMPTY_TEST;
if (readWrite) {
shard.tell(prepareForwardedReadyTransaction(shard, transactionID, TestModel.TEST_PATH, containerNode, true),
testKit.getRef());
final DataTreeModification modification = dataStore.newModification();
- final var writeData = containerNode(TestModel.TEST_QNAME);
+ final var writeData = TestModel.EMPTY_TEST;
modification.write(TestModel.TEST_PATH, writeData);
final var mergeData = mapNodeBuilder(TestModel.OUTER_LIST_QNAME)
.addChild(mapEntry(TestModel.OUTER_LIST_QNAME, TestModel.ID_QNAME, 42))
final DataTreeModification modification = dataStore.newModification();
- final ContainerNode writeData = containerNode(TestModel.TEST_QNAME);
+ final ContainerNode writeData = TestModel.EMPTY_TEST;
modification.write(TestModel.TEST_PATH, writeData);
final MapNode mergeData = mapNodeBuilder(TestModel.OUTER_LIST_QNAME)
.addChild(mapEntry(TestModel.OUTER_LIST_QNAME, TestModel.ID_QNAME, 42))
final Duration duration = Duration.ofSeconds(5);
final TransactionIdentifier transactionID = nextTransactionId();
- final NormalizedNode containerNode = containerNode(TestModel.TEST_QNAME);
+ final ContainerNode containerNode = TestModel.EMPTY_TEST;
shard.tell(prepareBatchedModifications(transactionID, TestModel.TEST_PATH, containerNode, false),
testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
if (readWrite) {
shard.tell(prepareForwardedReadyTransaction(shard, transactionID, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false), testKit.getRef());
+ TestModel.EMPTY_TEST, false), testKit.getRef());
} else {
shard.tell(prepareBatchedModifications(transactionID, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false), testKit.getRef());
+ TestModel.EMPTY_TEST, false), testKit.getRef());
}
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
.commit(any(DataTreeCandidate.class));
final TransactionIdentifier transactionID1 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// Send the CanCommitTransaction message for the first Tx.
.prepare(any(DataTreeModification.class));
final TransactionIdentifier transactionID1 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// Send the CanCommitTransaction message for the first Tx.
doThrow(new DataValidationFailedException(YangInstanceIdentifier.of(), "mock canCommit failure"))
.doNothing().when(dataTree).validate(any(DataTreeModification.class));
- shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// Send the CanCommitTransaction message.
// up.
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
shard.tell(new CanCommitTransaction(transactionID2, CURRENT_VERSION).toSerializable(), testKit.getRef());
if (readWrite) {
shard.tell(prepareForwardedReadyTransaction(shard, transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true), testKit.getRef());
+ TestModel.EMPTY_TEST, true), testKit.getRef());
} else {
shard.tell(prepareBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true), testKit.getRef());
+ TestModel.EMPTY_TEST, true), testKit.getRef());
}
testKit.expectMsgClass(duration, org.apache.pekko.actor.Status.Failure.class);
final TransactionIdentifier transactionID2 = nextTransactionId();
if (readWrite) {
shard.tell(prepareForwardedReadyTransaction(shard, transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true), testKit.getRef());
+ TestModel.EMPTY_TEST, true), testKit.getRef());
} else {
shard.tell(prepareBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true), testKit.getRef());
+ TestModel.EMPTY_TEST, true), testKit.getRef());
}
testKit.expectMsgClass(duration, CommitTransactionReply.class);
final TransactionIdentifier transactionID = nextTransactionId();
- shard.tell(prepareBatchedModifications(transactionID, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false), testKit.getRef());
+ shard.tell(prepareBatchedModifications(transactionID, TestModel.TEST_PATH, TestModel.EMPTY_TEST, false),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
shard.tell(new CanCommitTransaction(transactionID, CURRENT_VERSION).toSerializable(), testKit.getRef());
final Duration duration = Duration.ofSeconds(5);
- writeToStore(shard, TestModel.TEST_PATH, containerNode(TestModel.TEST_QNAME));
+ writeToStore(shard, TestModel.TEST_PATH, TestModel.EMPTY_TEST);
writeToStore(shard, TestModel.OUTER_LIST_PATH, mapNodeBuilder(TestModel.OUTER_LIST_QNAME).build());
// Ready 2 Tx's - the first will timeout
final Duration duration = Duration.ofSeconds(5);
final TransactionIdentifier transactionID1 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
final TransactionIdentifier transactionID3 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID3, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID3, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// All Tx's are readied. We'll send canCommit for the last one
final ShardDataTree dataStore = shard.underlyingActor().getDataStore();
final TransactionIdentifier transactionID1 = nextTransactionId();
- shard.tell(prepareBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false), testKit.getRef());
+ shard.tell(prepareBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, false),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// CanCommit the first Tx so it's the current in-progress Tx.
// Ready the second Tx.
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(prepareBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), false), testKit.getRef());
+ shard.tell(prepareBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, false),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// Ready the third Tx.
// Ready 2 transactions - the first one will be aborted.
final TransactionIdentifier transactionID1 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// Send the CanCommitTransaction message for the first Tx.
// Ready a tx.
final TransactionIdentifier transactionID1 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
// Send the AbortTransaction message.
// Ready and CanCommit another and verify success.
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
shard.tell(new CanCommitTransaction(transactionID2, CURRENT_VERSION).toSerializable(), testKit.getRef());
// Ready 3 tx's.
final TransactionIdentifier transactionID1 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID1, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
final TransactionIdentifier transactionID2 = nextTransactionId();
- shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH,
- containerNode(TestModel.TEST_QNAME), true, false, 1), testKit.getRef());
+ shard.tell(newBatchedModifications(transactionID2, TestModel.TEST_PATH, TestModel.EMPTY_TEST, true, false, 1),
+ testKit.getRef());
testKit.expectMsgClass(duration, ReadyTransactionReply.class);
final TransactionIdentifier transactionID3 = nextTransactionId();
new DelegatingShardCreator(creator)).withDispatcher(Dispatchers.DefaultDispatcherId()), shardActorName);
ShardTestKit.waitUntilLeader(shard);
- writeToStore(shard, TestModel.TEST_PATH, containerNode(TestModel.TEST_QNAME));
+ writeToStore(shard, TestModel.TEST_PATH, TestModel.EMPTY_TEST);
final NormalizedNode expectedRoot = readStore(shard, YangInstanceIdentifier.of());
SCHEMA_CONTEXT);
final DataTreeModification putTransaction = store.takeSnapshot().newModification();
- putTransaction.write(TestModel.TEST_PATH, containerNode(TestModel.TEST_QNAME));
+ putTransaction.write(TestModel.TEST_PATH, TestModel.EMPTY_TEST);
commitTransaction(store, putTransaction);
commitTransaction(store, writeTransaction);
- final NormalizedNode actual = readStore(store, YangInstanceIdentifier.of());
-
- assertEquals(expected, actual);
+ assertEquals(expected, readStore(store, YangInstanceIdentifier.of()));
}
@Test
RegisterDataTreeNotificationListenerReply.class);
assertNotNull("getListenerRegistrationPath", reply.getListenerRegistrationPath());
- writeToStore(followerShard, path, containerNode(TestModel.TEST_QNAME));
+ writeToStore(followerShard, path, TestModel.EMPTY_TEST);
listener.waitForChangeEvents();
}