X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-client%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fclient%2FNetconfClientSessionNegotiatorTest.java;fp=opendaylight%2Fnetconf%2Fnetconf-client%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fclient%2FNetconfClientSessionNegotiatorTest.java;h=eb45a4dcd4b8075dbbdbeb7ce04709371d328407;hp=ce18ac057944e4d6676a8a018083e5e1a224cfad;hb=c05081da57a5f4740e77c50692735fb02f041657;hpb=51145748ea0c38e8bbfe4bf7a5b2b993f0879974 diff --git a/opendaylight/netconf/netconf-client/src/test/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiatorTest.java b/opendaylight/netconf/netconf-client/src/test/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiatorTest.java index ce18ac0579..eb45a4dcd4 100644 --- a/opendaylight/netconf/netconf-client/src/test/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiatorTest.java +++ b/opendaylight/netconf/netconf-client/src/test/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiatorTest.java @@ -16,7 +16,6 @@ import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; - import com.google.common.base.Optional; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; @@ -64,7 +63,7 @@ public class NetconfClientSessionNegotiatorTest { channel = mockChannel(); } - private ChannelHandler mockChannelHandler() { + private static ChannelHandler mockChannelHandler() { ChannelHandler handler = mock(ChannelHandler.class); return handler; } @@ -83,13 +82,13 @@ public class NetconfClientSessionNegotiatorTest { return channel; } - private ChannelFuture mockChannelFuture() { + private static ChannelFuture mockChannelFuture() { ChannelFuture future = mock(ChannelFuture.class); doReturn(future).when(future).addListener(any(GenericFutureListener.class)); return future; } - private ChannelPipeline mockChannelPipeline() { + private static ChannelPipeline mockChannelPipeline() { ChannelPipeline pipeline = mock(ChannelPipeline.class); ChannelHandler handler = mock(ChannelHandler.class); doReturn(pipeline).when(pipeline).addAfter(anyString(), anyString(), any(ChannelHandler.class));