BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / EffectiveStatementTypeTest.java
index 499221c666554ba30998c28168697db3e008a76d..0f81593d7976a6b92e1059ef644465f36895a432 100644 (file)
@@ -64,7 +64,7 @@ public class EffectiveStatementTypeTest {
         final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR.newBuild();
         reactor.addSource(IMPORTED_MODULE);
         effectiveSchemaContext = reactor.buildEffective();
-        types = effectiveSchemaContext.findModuleByName("types", null);
+        types = effectiveSchemaContext.findModules("types").iterator().next();
         assertNotNull(types);
     }