File abstractTopology = new File(getClass().getResource("/abstract-topology.yang").toURI());
File ietfInetTypes = new File(getClass().getResource("/ietf/ietf-inet-types.yang").toURI());
- final SchemaContext context = YangParserTestUtils.parseYangSources(abstractTopology, ietfInetTypes);
+ final SchemaContext context = YangParserTestUtils.parseYangFiles(abstractTopology, ietfInetTypes);
assertNotNull(context);
final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
@Test
public void testContainerResolving() throws URISyntaxException, IOException, SourceException, ReactorException {
final File testFile = new File(getClass().getResource("/simple-container-demo.yang").toURI());
- final SchemaContext context = YangParserTestUtils.parseYangSources(testFile);
+ final SchemaContext context = YangParserTestUtils.parseYangFiles(testFile);
assertNotNull(context);
final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
@Test
public void testLeafListResolving() throws URISyntaxException, IOException, SourceException, ReactorException {
final File testFile = new File(getClass().getResource("/simple-leaf-list-demo.yang").toURI());
- final SchemaContext context = YangParserTestUtils.parseYangSources(testFile);
+ final SchemaContext context = YangParserTestUtils.parseYangFiles(testFile);
assertNotNull(context);
final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
@Test
public void testListResolving() throws URISyntaxException, IOException, SourceException, ReactorException {
final File testFile = new File(getClass().getResource("/simple-list-demo.yang").toURI());
- final SchemaContext context = YangParserTestUtils.parseYangSources(testFile);
+ final SchemaContext context = YangParserTestUtils.parseYangFiles(testFile);
assertNotNull(context);
final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
@Test
public void testListCompositeKeyResolving() throws URISyntaxException, IOException, SourceException, ReactorException {
final File testFile = new File(getClass().getResource("/list-composite-key.yang").toURI());
- final SchemaContext context = YangParserTestUtils.parseYangSources(testFile);
+ final SchemaContext context = YangParserTestUtils.parseYangFiles(testFile);
assertNotNull(context);
final BindingGenerator bindingGen = new BindingGeneratorImpl(true);
@Test
public void testGeneratedTypes() throws URISyntaxException, IOException, SourceException, ReactorException {
final File testFile = new File(getClass().getResource("/demo-topology.yang").toURI());
- final SchemaContext context = YangParserTestUtils.parseYangSources(testFile);
+ final SchemaContext context = YangParserTestUtils.parseYangFiles(testFile);
assertNotNull(context);
final BindingGenerator bindingGen = new BindingGeneratorImpl(true);