use of org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException in project controller by opendaylight.
the class BenchmarkModel method createTestContext.
public static SchemaContext createTestContext() {
final SchemaContext schemaContext;
final List<InputStream> streams = Collections.singletonList(getInputStream());
try {
schemaContext = YangParserTestUtils.parseYangStreams(streams);
} catch (ReactorException e) {
throw new RuntimeException("Unable to build schema context from " + streams, e);
}
return schemaContext;
}
Aggregations