X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fpersisted%2FShardDataTreeSnapshotTest.java;h=3051194a6f019c0ceb494713ff6c24062570f406;hb=546cd1fd100dbaa36908b22c2f422320dbd8c4b2;hp=5adf2cb6bd1a0a3da93ebdecb234c0a8f62dc56c;hpb=21a8c34586d37b6fc59abed2ca2287be3db56e00;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java index 5adf2cb6bd..3051194a6f 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java @@ -37,7 +37,7 @@ public class ShardDataTreeSnapshotTest { @Test public void testShardDataTreeSnapshotWithNoMetadata() throws Exception { - NormalizedNode expectedNode = ImmutableContainerNodeBuilder.create() + NormalizedNode expectedNode = ImmutableContainerNodeBuilder.create() .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(TestModel.TEST_QNAME)) .withChild(ImmutableNodes.leafNode(TestModel.DESC_QNAME, "foo")).build(); @@ -55,7 +55,7 @@ public class ShardDataTreeSnapshotTest { deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot(); } - Optional> actualNode = deserialized.getRootNode(); + Optional actualNode = deserialized.getRootNode(); assertTrue("rootNode present", actualNode.isPresent()); assertEquals("rootNode", expectedNode, actualNode.get()); assertEquals("Deserialized type", MetadataShardDataTreeSnapshot.class, deserialized.getClass()); @@ -64,7 +64,7 @@ public class ShardDataTreeSnapshotTest { @Test public void testShardDataTreeSnapshotWithMetadata() throws Exception { - NormalizedNode expectedNode = ImmutableContainerNodeBuilder.create() + NormalizedNode expectedNode = ImmutableContainerNodeBuilder.create() .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(TestModel.TEST_QNAME)) .withChild(ImmutableNodes.leafNode(TestModel.DESC_QNAME, "foo")).build(); @@ -84,7 +84,7 @@ public class ShardDataTreeSnapshotTest { deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot(); } - Optional> actualNode = deserialized.getRootNode(); + Optional actualNode = deserialized.getRootNode(); assertTrue("rootNode present", actualNode.isPresent()); assertEquals("rootNode", expectedNode, actualNode.get()); assertEquals("Deserialized type", MetadataShardDataTreeSnapshot.class, deserialized.getClass());