BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / ChoiceStmtTest.java
index 82c5d651e20187df454d1363fcd95ef8aa781c39..b2ab02b7cc2db4a7d344a73e5fea1b89e29fc020 100644 (file)
@@ -39,7 +39,7 @@ public class ChoiceStmtTest {
         final SchemaContext result = reactor.buildEffective();
         assertNotNull(result);
 
-        final Module testModule = result.findModuleByName("foo", null);
+        final Module testModule = result.findModules("foo").iterator().next();
         assertNotNull(testModule);
 
         final ContainerSchemaNode container = (ContainerSchemaNode) testModule.getDataChildByName(QName.create(