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=5a2445279b4df24214d0c998f8fa78ba6f17d3a2;hp=2021bf722c5390560e2860f334563c34323d6815;hb=f8225a74b7c11db1ebf77ab9de998c2e953f8ed8;hpb=fe510e726809d37837edca45c31a916d18c8bad7 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..5a2445279b 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 @@ -7,20 +7,23 @@ */ package org.opendaylight.controller.netconf.cli.io; -import com.google.common.collect.Maps; import java.util.Map; + import junit.framework.Assert; + import org.junit.Test; import org.opendaylight.controller.netconf.cli.commands.CommandConstants; import org.opendaylight.yangtools.yang.common.QName; +import com.google.common.collect.Maps; + public class IOUtilTest { @Test 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); }