Delete netconf
[controller.git] / opendaylight / netconf / netconf-impl / src / test / java / org / opendaylight / controller / netconf / impl / mapping / operations / DefaultStopExiTest.java
diff --git a/opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/mapping/operations/DefaultStopExiTest.java b/opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/mapping/operations/DefaultStopExiTest.java
deleted file mode 100644 (file)
index 466ec97..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.controller.netconf.impl.mapping.operations;
-
-import static org.junit.Assert.assertNotNull;
-import static org.mockito.Mockito.any;
-import static org.mockito.Mockito.anyString;
-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.ChannelHandler;
-import io.netty.channel.ChannelPipeline;
-import org.junit.Test;
-import org.opendaylight.controller.config.util.xml.XmlElement;
-import org.opendaylight.controller.config.util.xml.XmlUtil;
-import org.opendaylight.controller.netconf.impl.NetconfServerSession;
-import org.w3c.dom.Document;
-
-public class DefaultStopExiTest {
-    @Test
-    public void testHandleWithNoSubsequentOperations() throws Exception {
-        DefaultStopExi exi = new DefaultStopExi("");
-        Document doc = XmlUtil.newDocument();
-        Channel channel = mock(Channel.class);
-        doReturn("mockChannel").when(channel).toString();
-        ChannelPipeline pipeline = mock(ChannelPipeline.class);
-        doReturn(pipeline).when(channel).pipeline();
-        ChannelHandler channelHandler = mock(ChannelHandler.class);
-        doReturn(channelHandler).when(pipeline).replace(anyString(), anyString(), any(ChannelHandler.class));
-
-        NetconfServerSession serverSession = new NetconfServerSession(null, channel, 2L, null);
-        exi.setNetconfSession(serverSession);
-
-        assertNotNull(exi.handleWithNoSubsequentOperations(doc, XmlElement.fromDomElement(XmlUtil.readXmlToElement("<elem/>"))));
-        verify(pipeline, times(1)).replace(anyString(), anyString(), any(ChannelHandler.class));
-    }
-}