BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug4933Test.java
index e22cc13aebe4d5a29ffb36d2964b233b19b19f15..8d8482302d2d2b0829f0f36d859397aa56b41b23 100644 (file)
@@ -27,8 +27,7 @@ public class Bug4933Test {
         SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug4933/correct");
         assertNotNull(context);
 
-        final Module foo = context.findModuleByName("foo", null);
-
+        final Module foo = context.findModules("foo").iterator().next();
         Set<Deviation> deviations = foo.getDeviations();
         assertEquals(4, deviations.size());
     }