Bug 7159: Add yang-test-util artifact
[mdsal.git] / binding / mdsal-binding-generator-util / src / test / java / org / opendaylight / yangtools / binding / generator / util / BindingGeneratorUtilTest.java
index 0e32ba431eae8dde8e9c700069e709f80d34b365..2485e96fea5c6701d337f59aa5a6a9d6b6dc5cc3 100644 (file)
@@ -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<File> loadTestResources(final String testFile) {
-        final List<File> testModels = new ArrayList<File>();
+        final List<File> 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<File> testModels = loadTestResources("/module.yang");
 
-        final Set<Module> modules = TestUtils.parseYangSources(testModels).getModules();
+        final Set<Module> modules = YangParserTestUtils.parseYangSources(testModels).getModules();
         String packageName = "";
         Module module = null;
         for (Module m : modules) {