Remove TestUtils.findModule()
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / OrderingTest.java
index ad4d7090081b7a935fe4931a7ba75b4f7caa309b..b863ef6f3e691ff70811b03e77f6cbb6050d6615 100644 (file)
@@ -37,9 +37,9 @@ public class OrderingTest {
     @Before
     public void setup() throws ReactorException, IOException, YangSyntaxErrorException, URISyntaxException {
         context = TestUtils.loadModules(getClass().getResource("/model").toURI());
-        foo = TestUtils.findModule(context, "foo").get();
-        bar = TestUtils.findModule(context, "bar").get();
-        baz = TestUtils.findModule(context, "baz").get();
+        foo = context.findModules("foo").iterator().next();
+        bar = context.findModules("bar").iterator().next();
+        baz = context.findModules("baz").iterator().next();
     }
 
     @Test