- public static SchemaContext entityOwners() {
- try {
- return YangParserTestUtils.parseYangSources(new File("src/main/yang/entity-owners.yang"));
- } catch (IOException | ReactorException e) {
- throw Throwables.propagate(e);
- }
+ public static EffectiveModelContext select(final String... schemaFiles) {
+ return YangParserTestUtils.parseYangResources(SchemaContextHelper.class, schemaFiles);
+ }
+
+ public static EffectiveModelContext distributedShardedDOMDataTreeSchemaContext() {
+ // we need prefix-shard-configuration and odl-datastore-test models
+ // for DistributedShardedDOMDataTree tests
+ return YangParserTestUtils.parseYangResources(SchemaContextHelper.class, ODL_DATASTORE_TEST_YANG,
+ "/META-INF/yang/prefix-shard-configuration@2017-01-10.yang");