Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / netconf / netconf-topology-singleton / src / test / java / org / opendaylight / netconf / topology / singleton / impl / tx / ReadOnlyTransactionTest.java
index 366a75b26752893f5a997edd0ed25967aaf67d7a..825a812f0354e4b08c7d4322647b9db496344889 100644 (file)
@@ -119,8 +119,8 @@ public class ReadOnlyTransactionTest {
     public void testRead() throws Exception {
         // Message: NormalizedNodeMessage
         final NormalizedNode<?, ?> outputNode = ImmutableContainerNodeBuilder.create()
-                .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(QName.create("TestQname")))
-                .withChild(ImmutableNodes.leafNode(QName.create("NodeQname"), "foo")).build();
+                .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(QName.create("", "TestQname")))
+                .withChild(ImmutableNodes.leafNode(QName.create("", "NodeQname"), "foo")).build();
         final CheckedFuture<Optional<NormalizedNode<?, ?>>, ReadFailedException> resultNormalizedNodeMessage =
                 Futures.immediateCheckedFuture(Optional.of(outputNode));
         doReturn(resultNormalizedNodeMessage).when(readTx).read(storeType, instanceIdentifier);
@@ -147,7 +147,7 @@ public class ReadOnlyTransactionTest {
                         instanceIdentifier);
 
         final Optional<NormalizedNode<?, ?>> resultEmptyMessage =
-                resultEmptyResponse.checkedGet(TIMEOUT_SEC, TimeUnit.SECONDS);
+                resultEmptyResponse.get(TIMEOUT_SEC, TimeUnit.SECONDS);
 
         assertEquals(resultEmptyMessage, Optional.absent());
     }