BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / parser / stmt / rfc7950 / Bug6874Test.java
index 19f2312e634a3df8ee944a5aab4615b93f43bccf..22a75352775ce299f0bbf9eb4fa82f33e59465fa 100644 (file)
@@ -47,7 +47,7 @@ public class Bug6874Test {
         assertNotNull(schemaContext);
 
         // Test for valid include statement
-        final Module testModule = schemaContext.findModuleByName("root-module", null);
+        final Module testModule = schemaContext.findModules("root-module").iterator().next();
         assertNotNull(testModule);
 
         // Test for valid import statement