final StatementStreamSource test3 = sourceForResource("/context-augment-test/test3.yang");
final SchemaContext context = TestUtils.parseYangSources(resource, test1, test2, test3);
- final Set<Module> modules = context.getModules();
- assertNotNull(modules);
-
- final Module t4 = TestUtils.findModule(modules, "test4");
+ final Module t4 = TestUtils.findModule(context, "test4").get();
final ContainerSchemaNode interfaces = (ContainerSchemaNode) t4.getDataChildByName(QName.create(
t4.getQNameModule(), "interfaces"));
final ListSchemaNode ifEntry = (ListSchemaNode) interfaces.getDataChildByName(QName.create(t4.getQNameModule(),