Fix broken tests according to yangtools changes
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / java / org / opendaylight / mdsal / binding / generator / impl / UnionTypeDefTest.java
index 300b2a23963e1081e774f72a51b7552949025cac..788b037984cf2500c80a6f46ce0c33f56fe3763b 100644 (file)
@@ -28,7 +28,7 @@ public class UnionTypeDefTest {
     public void unionTypeResolvingTest() throws Exception {
         final File abstractTopology = new File(getClass().getResource("/union-test-models/abstract-topology.yang").toURI());
         final File ietfInetTypes = new File(getClass().getResource("/ietf/ietf-inet-types.yang").toURI());
-        final SchemaContext context = YangParserTestUtils.parseYangSources(abstractTopology, ietfInetTypes);
+        final SchemaContext context = YangParserTestUtils.parseYangFiles(abstractTopology, ietfInetTypes);
 
         assertNotNull("context is null", context);
         final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
@@ -43,7 +43,7 @@ public class UnionTypeDefTest {
     @Test
     public void unionTypedefLeafrefTest() throws Exception {
         final File yang = new File(getClass().getResource("/leafref_typedef_union/bug8449.yang").toURI());
-        final SchemaContext schemaContext = YangParserTestUtils.parseYangSources(yang);
+        final SchemaContext schemaContext = YangParserTestUtils.parseYangFiles(yang);
         assertNotNull(schemaContext);
         final List<Type> generateTypes = new BindingGeneratorImpl(false).generateTypes(schemaContext);
         assertNotNull(generateTypes);