BUG-4688: Rework SchemaContext module lookups
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / openconfigver / OpenconfigVersionDefaultsTest.java
index 4ef4a678546dc8ea60e2e3fdbb11a9f6844f62b6..988173f93af5731a99ffa71db2e9fbe16e548052 100644 (file)
@@ -30,8 +30,8 @@ public class OpenconfigVersionDefaultsTest {
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
-        Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
+        Module foo = context.findModules(new URI("foo")).iterator().next();
+        Module bar = context.findModules(new URI("bar")).iterator().next();
 
         assertEquals(Optional.empty(), foo.getSemanticVersion());
         assertEquals(Optional.empty(), bar.getSemanticVersion());
@@ -43,8 +43,8 @@ public class OpenconfigVersionDefaultsTest {
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
 
-        Module foo = context.findModuleByNamespace(new URI("foo")).iterator().next();
-        Module bar = context.findModuleByNamespace(new URI("bar")).iterator().next();
+        Module foo = context.findModules(new URI("foo")).iterator().next();
+        Module bar = context.findModules(new URI("bar")).iterator().next();
 
         assertEquals(Optional.empty(), foo.getSemanticVersion());
         assertEquals(SemVer.valueOf("0.99.99"), bar.getSemanticVersion().get());