BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug5712Test.java
index 9df7aa9dc6812b64ade71d8540017ea10d0627c4..84578c794ab5a3e83e23a9c3c12a4bb886935a8a 100644 (file)
@@ -24,9 +24,8 @@ public class Bug5712Test {
         SchemaContext schemaContext = StmtTestUtils.parseYangSources("/bugs/bug5712");
         assertNotNull(schemaContext);
 
-        Module badModule = schemaContext.findModuleByName("bad", null);
+        Module badModule = schemaContext.findModules("bad").iterator().next();
         assertNotNull(badModule);
-
         checkThing2TypeDef(badModule);
     }