- public static void setup() throws SourceException, ReactorException {
- final List<InputStream> modelsToParse = Collections
- .singletonList(BaseYangTypesTest.class.getResourceAsStream("/base-yang-types.yang"));
- schemaContext = YangParserTestUtils.parseYangStreams(modelsToParse);
+ public static void setup() throws Exception {
+ final List<File> modelsToParse = Collections
+ .singletonList(new File(BaseYangTypesTest.class.getResource("/base-yang-types.yang").toURI()));
+ schemaContext = YangParserTestUtils.parseYangFiles(modelsToParse);