+
+ private static InputStream getInputStream() {
+ return XSQLTest.class.getResourceAsStream(DATASTORE_TEST_YANG);
+ }
+
+ public static SchemaContext createTestContext() {
+ final List<InputStream> streams = Collections.singletonList(getInputStream());
+
+ try {
+ return YangParserTestUtils.parseYangStreams(streams);
+ } catch (ReactorException e) {
+ throw new RuntimeException("Unable to build schema context from " + streams, e);
+ }
+ }