Enforce case uniqueness
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / RetestModel.java
index 756abb078505c4acbae7c2645a8ade6611adc392..9f31295f6dffe52fe6518c7d82640a459ef70fa7 100644 (file)
@@ -40,4 +40,9 @@ public class RetestModel {
     public static SchemaContext createTestContext() throws ReactorException {
         return RetestUtils.parseYangStreams(Arrays.asList(getDatastoreTestInputStream()));
     }
+
+    public static SchemaContext createTestContext(String resourcePath) throws ReactorException {
+        InputStream yangStream = RetestModel.class.getResourceAsStream(resourcePath);
+        return RetestUtils.parseYangStreams(Arrays.asList(yangStream));
+    }
 }