Update DOMRpcResult a bit
[mdsal.git] / binding / mdsal-binding-dom-adapter / src / test / java / org / opendaylight / mdsal / binding / dom / adapter / Mdsal500Test.java
index 3069084eb99e2ae9b6199e5f81d2f5bf1bcd7a78..bc54e670eaeb1bcae19f415df417f25feb2aa716 100644 (file)
@@ -86,7 +86,7 @@ public class Mdsal500Test {
         ContainerNode biSwitchInput = toDOMSwitchInput(baSwitchInput);
         DOMRpcResult domResult = biRpcService.invokeRpc(SWITCH_QNAME, biSwitchInput).get(5, TimeUnit.SECONDS);
         assertNotNull(domResult);
-        assertNotNull(domResult.getResult());
+        assertNotNull(domResult.value());
         assertTrue("Binding KnockKnock service was not invoked",
                 switchRpcImpl.getReceivedSwitch().containsKey(FOO));
         assertEquals(baSwitchInput, switchRpcImpl.getReceivedSwitch().get(FOO).iterator().next());
@@ -146,7 +146,7 @@ public class Mdsal500Test {
         private final Multimap<String, SwitchInput> receivedSwitch = HashMultimap.create();
 
         Mdsal500ServiceImpl setSwitchResult(final ListenableFuture<RpcResult<SwitchOutput>> switchOutput) {
-            this.switchResult = switchOutput;
+            switchResult = switchOutput;
             return this;
         }