X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-netty-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fnettyutil%2Fhandler%2Fssh%2Fclient%2FAsyncSshHandlerTest.java;h=e504c679ba5b3d0e04eba433f193f89208b1a91b;hb=7f08b1035520fcc0f60ab6c6ab6536366510a45f;hp=b3f085b2930d83507eebddde3e26e877400c964d;hpb=06c94657833f0ed7110a40af31af20f869cca19d;p=netconf.git diff --git a/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java b/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java index b3f085b293..e504c679ba 100644 --- a/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java +++ b/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java @@ -218,7 +218,6 @@ public class AsyncSshHandlerTest { Futures.addCallback(stubAddListener(ioWriteFuture), new SuccessFutureListener() { @Override public void onSuccess(final SshFutureListener result) { - doReturn(false).when(ioWriteFuture).isWritten(); doReturn(new IllegalStateException()).when(ioWriteFuture).getException(); result.operationComplete(ioWriteFuture); } @@ -407,7 +406,7 @@ public class AsyncSshHandlerTest { private static IoOutputStream getMockedIoOutputStream() throws IOException { final IoOutputStream mock = mock(IoOutputStream.class); final IoWriteFuture ioWriteFuture = mock(IoWriteFuture.class); - doReturn(true).when(ioWriteFuture).isWritten(); + doReturn(null).when(ioWriteFuture).getException(); Futures.addCallback(stubAddListener(ioWriteFuture), new SuccessFutureListener() { @Override