X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-netty-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fnettyutil%2FAbstractNetconfSessionTest.java;h=3a1b26dd9e4dc0c44fedc890a78b9586c6512e29;hp=7946afdbf5e1c80add226b08137b1faedd3bf6bf;hb=e8ee8a8897013fb90376e21ccd9fc54a98a8c251;hpb=93154ea2573eb37ebcca4c360bf538d8d92967f9 diff --git a/opendaylight/netconf/netconf-netty-util/src/test/java/org/opendaylight/controller/netconf/nettyutil/AbstractNetconfSessionTest.java b/opendaylight/netconf/netconf-netty-util/src/test/java/org/opendaylight/controller/netconf/nettyutil/AbstractNetconfSessionTest.java index 7946afdbf5..3a1b26dd9e 100644 --- a/opendaylight/netconf/netconf-netty-util/src/test/java/org/opendaylight/controller/netconf/nettyutil/AbstractNetconfSessionTest.java +++ b/opendaylight/netconf/netconf-netty-util/src/test/java/org/opendaylight/controller/netconf/nettyutil/AbstractNetconfSessionTest.java @@ -19,12 +19,13 @@ import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verifyNoMoreInteractions; import static org.mockito.Mockito.verifyZeroInteractions; - import com.google.common.base.Optional; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelPipeline; +import io.netty.handler.codec.ByteToMessageDecoder; +import io.netty.handler.codec.MessageToByteEncoder; import java.util.Collections; import org.junit.Before; import org.junit.Test; @@ -34,7 +35,6 @@ import org.opendaylight.controller.netconf.api.NetconfMessage; import org.opendaylight.controller.netconf.api.NetconfSession; import org.opendaylight.controller.netconf.api.NetconfSessionListener; import org.opendaylight.controller.netconf.api.NetconfTerminationReason; -import org.opendaylight.controller.netconf.nettyutil.handler.NetconfEXICodec; import org.opendaylight.controller.netconf.nettyutil.handler.exi.NetconfStartExiMessage; import org.opendaylight.controller.netconf.util.messages.NetconfHelloMessage; import org.opendaylight.controller.netconf.util.messages.NetconfHelloMessageAdditionalHeader; @@ -115,7 +115,7 @@ public class AbstractNetconfSessionTest { testingNetconfSession = spy(testingNetconfSession); testingNetconfSession.startExiCommunication(NetconfStartExiMessage.create(new EXIOptions(), "4")); - verify(testingNetconfSession).addExiHandlers(any(NetconfEXICodec.class)); + verify(testingNetconfSession).addExiHandlers(any(ByteToMessageDecoder.class), any(MessageToByteEncoder.class)); } @Test @@ -148,7 +148,7 @@ public class AbstractNetconfSessionTest { } @Override - protected void addExiHandlers(final NetconfEXICodec exiCodec) {} + protected void addExiHandlers(final ByteToMessageDecoder decoder, final MessageToByteEncoder encoder) {} @Override public void stopExiCommunication() {}