Clean up argument checking
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / StmtTestUtils.java
index 13a1e12a984841f8ea055cdca5854485d35a44e1..5fc013271682e27bd106a3475a169b329850caac 100644 (file)
@@ -77,7 +77,7 @@ public final class StmtTestUtils {
         return result;
     }
 
-    public static StatementStreamSource sourceForResource(final String resourceName) {
+    public static YangStatementStreamSource sourceForResource(final String resourceName) {
         try {
             return YangStatementStreamSource.create(YangTextSchemaSource.forFile(new File(
                 StmtTestUtils.class.getResource(resourceName).toURI())));
@@ -236,6 +236,11 @@ public final class StmtTestUtils {
         return reactor.buildEffective();
     }
 
+    public static EffectiveModelContext parseYinSources(final String yinSourcesDirectoryPath)
+            throws URISyntaxException, SAXException, IOException, ReactorException {
+        return parseYinSources(yinSourcesDirectoryPath, StatementParserMode.DEFAULT_MODE);
+    }
+
     public static EffectiveModelContext parseYinSources(final String yinSourcesDirectoryPath,
             final StatementParserMode statementParserMode) throws URISyntaxException, SAXException, IOException,
             ReactorException {