public void testLeafRefRelativeSelfReference() throws Exception {
File relative = new File(getClass().getResource("/leafref/leafref-relative-invalid.yang").toURI());
- final SchemaContext schemaContext = YangParserTestUtils.parseYangSources(relative);
+ final SchemaContext schemaContext = YangParserTestUtils.parseYangFiles(relative);
final Module moduleRelative = schemaContext.findModuleByNamespace(new URI("urn:xml:ns:yang:lrr")).iterator()
.next();
final TypeProviderImpl typeProvider = new TypeProviderImpl(schemaContext);
public void testLeafRefAbsoluteSelfReference() throws Exception {
File relative = new File(getClass().getResource("/leafref/leafref-absolute-invalid.yang").toURI());
- final SchemaContext schemaContext = YangParserTestUtils.parseYangSources(relative);
+ final SchemaContext schemaContext = YangParserTestUtils.parseYangFiles(relative);
final Module moduleRelative = schemaContext.findModuleByNamespace(new URI("urn:xml:ns:yang:lra")).iterator()
.next();
final TypeProviderImpl typeProvider = new TypeProviderImpl(schemaContext);
public void testLeafRefRelativeAndAbsoluteValidReference() throws Exception {
File valid = new File(getClass().getResource("/leafref/leafref-valid.yang").toURI());
- final SchemaContext schemaContext = YangParserTestUtils.parseYangSources(valid);
+ final SchemaContext schemaContext = YangParserTestUtils.parseYangFiles(valid);
final Module moduleValid = schemaContext.findModuleByNamespace(new URI("urn:xml:ns:yang:lrv")).iterator()
.next();
final TypeProviderImpl typeProvider = new TypeProviderImpl(schemaContext);
public void testMethodsOfTypeProviderImpl() throws Exception {
final File abstractTopology = new File(getClass().getResource("/base-yang-types.yang").toURI());
- final SchemaContext schemaContext = YangParserTestUtils.parseYangSources(abstractTopology);
+ final SchemaContext schemaContext = YangParserTestUtils.parseYangFiles(abstractTopology);
final TypeProviderImpl typeProvider = new TypeProviderImpl(schemaContext);