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%2FNetconfEXIHandlersTest.java;h=aaa30bb6c0a31e9ec50a9b71d7a8591ff039414c;hb=9a42076866ac48394163722b6ca95821a6cce876;hp=a6c5f0d3a4ddf1408c463042aafe4cd19f1827cf;hpb=51697b1224a8a84766d5139916ecc0f1889227dc;p=netconf.git diff --git a/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/NetconfEXIHandlersTest.java b/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/NetconfEXIHandlersTest.java index a6c5f0d3a4..aaa30bb6c0 100644 --- a/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/NetconfEXIHandlersTest.java +++ b/netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/NetconfEXIHandlersTest.java @@ -5,19 +5,16 @@ * 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.netconf.nettyutil.handler; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; -import com.google.common.collect.Lists; -import com.siemens.ct.exi.api.sax.SAXEncoder; -import com.siemens.ct.exi.exceptions.EXIException; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import java.io.ByteArrayOutputStream; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.xml.transform.TransformerException; @@ -26,9 +23,11 @@ import javax.xml.transform.sax.SAXResult; import org.custommonkey.xmlunit.XMLUnit; import org.junit.Before; import org.junit.Test; -import org.opendaylight.controller.config.util.xml.XmlUtil; -import org.opendaylight.netconf.api.NetconfMessage; +import org.opendaylight.netconf.api.messages.NetconfMessage; +import org.opendaylight.netconf.api.xml.XmlUtil; import org.opendaylight.netconf.nettyutil.handler.exi.EXIParameters; +import org.opendaylight.netconf.shaded.exificient.core.exceptions.EXIException; +import org.opendaylight.netconf.shaded.exificient.main.api.sax.SAXEncoder; public class NetconfEXIHandlersTest { @@ -71,9 +70,9 @@ public class NetconfEXIHandlersTest { assertEquals((byte)0, buffer.array()[i]); } - final List out = Lists.newArrayList(); + final List out = new ArrayList<>(); netconfEXIToMessageDecoder.decode(null, buffer, out); XMLUnit.compareXML(msg.getDocument(), ((NetconfMessage) out.get(0)).getDocument()); } -} \ No newline at end of file +}