BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug4456Test.java
index 7ca47737fc30d4cf15d9646225b0bafac11bc0b6..0fb1cdddcef201c9e884d727df498403c4e7a04e 100644 (file)
@@ -26,7 +26,7 @@ public class Bug4456Test {
         SchemaContext schema = StmtTestUtils.parseYangSources("/bugs/bug4456");
         assertNotNull(schema);
 
-        Set<Module> modules = schema.findModuleByNamespace(new URI("foo"));
+        Set<Module> modules = schema.findModules(URI.create("foo"));
         assertEquals(1, modules.size());
         Module moduleFoo = modules.iterator().next();