From: Robert Varga Date: Sun, 11 May 2014 17:22:24 +0000 (+0200) Subject: BUG-981: drop use of deprecated interfaces X-Git-Tag: release/helium~573 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=256b40dd2d6c189a9d10a64f6caa3d09b95d95b8;p=yangtools.git BUG-981: drop use of deprecated interfaces This is a follow-up migrating to new constructors. Change-Id: Ib76ff216e52c7142fd822b4e7e0b5004e5d54915 Signed-off-by: Robert Varga --- diff --git a/integration-test/yang-runtime-tests/src/test/java/org/opendaylight/yangtools/it/yang/runtime/tests/RuntimeCodecAugmentationWithGroupingsAndCasesTest.java b/integration-test/yang-runtime-tests/src/test/java/org/opendaylight/yangtools/it/yang/runtime/tests/RuntimeCodecAugmentationWithGroupingsAndCasesTest.java index 28b7879cd9..1b01772a62 100644 --- a/integration-test/yang-runtime-tests/src/test/java/org/opendaylight/yangtools/it/yang/runtime/tests/RuntimeCodecAugmentationWithGroupingsAndCasesTest.java +++ b/integration-test/yang-runtime-tests/src/test/java/org/opendaylight/yangtools/it/yang/runtime/tests/RuntimeCodecAugmentationWithGroupingsAndCasesTest.java @@ -54,9 +54,7 @@ public class RuntimeCodecAugmentationWithGroupingsAndCasesTest { assertNotNull(schemaContext); assertTrue(schemaContext.isPresent()); - mappingService = new RuntimeGeneratedMappingServiceImpl(moduleInfoContext); - mappingService.setPool(ClassPool.getDefault()); - mappingService.init(); + mappingService = new RuntimeGeneratedMappingServiceImpl(ClassPool.getDefault(), moduleInfoContext); mappingService.onGlobalContextUpdated(schemaContext.get()); } diff --git a/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/RestconfUtilsTest.java b/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/RestconfUtilsTest.java index 3fc33384e7..fef8a20547 100644 --- a/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/RestconfUtilsTest.java +++ b/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/RestconfUtilsTest.java @@ -11,8 +11,6 @@ import static junit.framework.Assert.assertNotNull; import static org.junit.Assert.assertEquals; import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; import javassist.ClassPool; @@ -20,29 +18,22 @@ import org.junit.Before; import org.junit.Test; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.isis.topology.rev131021.IgpNodeAttributes1; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NetworkTopology; -import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology; -import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.TopologyKey; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.nt.l3.unicast.igp.topology.rev131021.Node1; import org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext; import org.opendaylight.yangtools.sal.binding.generator.impl.RuntimeGeneratedMappingServiceImpl; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; -import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument; import org.opendaylight.yangtools.yang.binding.util.BindingReflections; import org.opendaylight.yangtools.yang.model.api.DataSchemaNode; -import com.google.common.collect.Lists; - public class RestconfUtilsTest { private RuntimeGeneratedMappingServiceImpl mappingService; @Before public void setup() { - this.mappingService = new RuntimeGeneratedMappingServiceImpl(); - this.mappingService.setPool(new ClassPool()); - this.mappingService.init(); + this.mappingService = new RuntimeGeneratedMappingServiceImpl(new ClassPool()); final ModuleInfoBackedContext moduleInfo = ModuleInfoBackedContext.create(); moduleInfo.addModuleInfos(BindingReflections.loadModuleInfos());