X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-cli%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fcli%2Fio%2FIOUtilTest.java;h=cb453903f91beaab8595ce7c619d9560871917a2;hp=2021bf722c5390560e2860f334563c34323d6815;hb=a4cedfafa17f4ee2357f0422e1fb0d8bcb54f5fd;hpb=cbe83ca3074fa0182d4f079f528bb710a997ced7 diff --git a/opendaylight/netconf/netconf-cli/src/test/java/org/opendaylight/controller/netconf/cli/io/IOUtilTest.java b/opendaylight/netconf/netconf-cli/src/test/java/org/opendaylight/controller/netconf/cli/io/IOUtilTest.java index 2021bf722c..cb453903f9 100644 --- a/opendaylight/netconf/netconf-cli/src/test/java/org/opendaylight/controller/netconf/cli/io/IOUtilTest.java +++ b/opendaylight/netconf/netconf-cli/src/test/java/org/opendaylight/controller/netconf/cli/io/IOUtilTest.java @@ -9,7 +9,7 @@ package org.opendaylight.controller.netconf.cli.io; import com.google.common.collect.Maps; import java.util.Map; -import junit.framework.Assert; +import org.junit.Assert; import org.junit.Test; import org.opendaylight.controller.netconf.cli.commands.CommandConstants; import org.opendaylight.yangtools.yang.common.QName; @@ -20,7 +20,7 @@ public class IOUtilTest { public void testQNameFromKeyStringNew() throws Exception { final String s = IOUtil.qNameToKeyString(CommandConstants.HELP_QNAME, "module"); final Map modulesMap = Maps.newHashMap(); - modulesMap.put("module", new QName(CommandConstants.HELP_QNAME, "module")); + modulesMap.put("module", QName.create(CommandConstants.HELP_QNAME, "module")); final QName qName = IOUtil.qNameFromKeyString(s, modulesMap); Assert.assertEquals(CommandConstants.HELP_QNAME, qName); }