Bug 7159: Add yang-test-util artifact
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / java / org / opendaylight / yangtools / sal / binding / generator / impl / IdentityrefTypeTest.java
index 325252b13a21b462fa289a1e209534e2ef1a4f89..2f32c1f99dc795a2218b2699f2bae63cb507f938 100644 (file)
@@ -25,6 +25,7 @@ import org.opendaylight.yangtools.sal.binding.model.api.Type;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 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 IdentityrefTypeTest {
 
@@ -34,7 +35,7 @@ public class IdentityrefTypeTest {
     public void loadTestResources() throws URISyntaxException {
         URI folderPath = IdentityrefTypeTest.class.getResource("/identityref.yang").toURI();
         File folderFile = new File(folderPath);
-        testModels = new ArrayList<File>();
+        testModels = new ArrayList<>();
 
         if (folderFile.isFile()) {
             testModels.add(folderFile);
@@ -57,7 +58,7 @@ public class IdentityrefTypeTest {
      */
     @Test
     public void testIdentityrefYangBuiltInType() throws IOException, SourceException, ReactorException {
-        final SchemaContext context = TestUtils.parseYangSources(testModels);
+        final SchemaContext context = YangParserTestUtils.parseYangSources(testModels);
 
         assertNotNull(context);
         final BindingGenerator bindingGen = new BindingGeneratorImpl(true);