use of org.opendaylight.controller.cluster.datastore.messages.ReadData in project controller by opendaylight.
the class ShardTransactionTest method testOnReceiveReadDataWhenDataNotFound.
@Test
public void testOnReceiveReadDataWhenDataNotFound() throws Exception {
new TestKit(getSystem()) {
{
testOnReceiveReadDataWhenDataNotFound(newTransactionActor(RO, readOnlyTransaction(), "testReadDataWhenDataNotFoundRO"));
testOnReceiveReadDataWhenDataNotFound(newTransactionActor(RW, readWriteTransaction(), "testReadDataWhenDataNotFoundRW"));
}
private void testOnReceiveReadDataWhenDataNotFound(final ActorRef transaction) {
transaction.tell(new ReadData(TestModel.TEST_PATH, DataStoreVersions.CURRENT_VERSION), getRef());
ReadDataReply reply = expectMsgClass(duration("5 seconds"), ReadDataReply.class);
assertTrue(reply.getNormalizedNode() == null);
}
};
}
Aggregations