BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / EffectiveBuildTest.java
index 629c935399785545d91926baa460b7392d819555..f7b343daf8271b74e790b394fb631c049a4d9148 100644 (file)
@@ -52,7 +52,7 @@ public class EffectiveBuildTest {
 
         assertNotNull(result);
 
-        Module simpleModule = result.findModuleByName("simple-module", null);
+        Module simpleModule = result.findModules("simple-module").iterator().next();
         assertNotNull(simpleModule);
 
         QName q1 = QName.create(SIMPLE_MODULE_QNAME, "root-container");