X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-generator-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fbinding%2Fgenerator%2Futil%2FBindingGeneratorUtilTest.java;h=2485e96fea5c6701d337f59aa5a6a9d6b6dc5cc3;hb=2f2d8d5ed221df99cacf05f7d54a0624d0f462a1;hp=0e32ba431eae8dde8e9c700069e709f80d34b365;hpb=e4617131eb695cd216fcd0007382eb45b973703d;p=mdsal.git diff --git a/binding/mdsal-binding-generator-util/src/test/java/org/opendaylight/yangtools/binding/generator/util/BindingGeneratorUtilTest.java b/binding/mdsal-binding-generator-util/src/test/java/org/opendaylight/yangtools/binding/generator/util/BindingGeneratorUtilTest.java index 0e32ba431e..2485e96fea 100644 --- a/binding/mdsal-binding-generator-util/src/test/java/org/opendaylight/yangtools/binding/generator/util/BindingGeneratorUtilTest.java +++ b/binding/mdsal-binding-generator-util/src/test/java/org/opendaylight/yangtools/binding/generator/util/BindingGeneratorUtilTest.java @@ -50,6 +50,7 @@ import org.opendaylight.yangtools.yang.model.util.type.RestrictedTypes; import org.opendaylight.yangtools.yang.model.util.type.StringTypeBuilder; import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException; import org.opendaylight.yangtools.yang.parser.spi.source.SourceException; +import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils; public class BindingGeneratorUtilTest { private static final SchemaPath ROOT_PATH = SchemaPath.create(true, QName.create("/root")); @@ -58,7 +59,7 @@ public class BindingGeneratorUtilTest { public ExpectedException expectedEx = ExpectedException.none(); private static List loadTestResources(final String testFile) { - final List testModels = new ArrayList(); + final List testModels = new ArrayList<>(); File listModelFile; try { listModelFile = new File(BindingGeneratorUtilTest.class.getResource(testFile).toURI()); @@ -86,7 +87,7 @@ public class BindingGeneratorUtilTest { public void testBindingGeneratorUtilMethods() throws IOException, SourceException, ReactorException { List testModels = loadTestResources("/module.yang"); - final Set modules = TestUtils.parseYangSources(testModels).getModules(); + final Set modules = YangParserTestUtils.parseYangSources(testModels).getModules(); String packageName = ""; Module module = null; for (Module m : modules) {