X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2Fmessages%2FSendErrorExceptionUtilTest.java;h=f98e6d9840e525cb187af32051d8b932a7e7e78f;hp=c8d562cb9c645879bbdaa868d227b675367e3e76;hb=23fe9ca678ada6263fec5dd996f4025e4a32fcf5;hpb=b5b204bafd8ee18692fc023cb2eae6e123369340 diff --git a/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/messages/SendErrorExceptionUtilTest.java b/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/messages/SendErrorExceptionUtilTest.java index c8d562cb9c..f98e6d9840 100644 --- a/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/messages/SendErrorExceptionUtilTest.java +++ b/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/messages/SendErrorExceptionUtilTest.java @@ -8,26 +8,29 @@ package org.opendaylight.controller.netconf.util.messages; +import static org.mockito.Matchers.any; +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 io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.util.concurrent.GenericFutureListener; import org.junit.Before; import org.junit.Test; -import org.opendaylight.controller.netconf.api.NetconfDocumentedException; +import org.opendaylight.controller.config.util.xml.DocumentedException; import org.opendaylight.controller.netconf.api.NetconfMessage; import org.opendaylight.controller.netconf.api.NetconfSession; import org.opendaylight.controller.netconf.util.test.XmlFileLoader; import org.w3c.dom.Document; -import static org.mockito.Matchers.any; -import static org.mockito.Mockito.*; - public class SendErrorExceptionUtilTest { NetconfSession netconfSession; ChannelFuture channelFuture; Channel channel; - private NetconfDocumentedException exception; + private DocumentedException exception; @Before public void setUp() throws Exception { @@ -37,7 +40,7 @@ public class SendErrorExceptionUtilTest { doReturn(channelFuture).when(netconfSession).sendMessage(any(NetconfMessage.class)); doReturn(channelFuture).when(channelFuture).addListener(any(GenericFutureListener.class)); doReturn(channelFuture).when(channel).writeAndFlush(any(NetconfMessage.class)); - exception = new NetconfDocumentedException("err"); + exception = new DocumentedException("err"); } @Test