Update StmtTestUtils
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / semver / SemanticVersionIgnoringRevisionTest.java
index 6d09201825f5378a6ee8438515944d56466448c1..ee52231261c775b2c826e2e0a73694ff9d1b363c 100644 (file)
@@ -10,24 +10,18 @@ package org.opendaylight.yangtools.yang.stmt.semver;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 
-import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
-
-import java.io.FileNotFoundException;
 import java.net.URI;
-import java.net.URISyntaxException;
 import org.junit.Test;
 import org.opendaylight.yangtools.concepts.SemVer;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
+import org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode;
 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
 
 public class SemanticVersionIgnoringRevisionTest {
 
     @Test
-    public void ignoringRevisionTest() throws SourceException, FileNotFoundException, ReactorException,
-            URISyntaxException {
+    public void ignoringRevisionTest() throws Exception {
         SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/ignoring-revision",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
@@ -43,8 +37,7 @@ public class SemanticVersionIgnoringRevisionTest {
     }
 
     @Test
-    public void ignoringRevision2Test() throws SourceException, FileNotFoundException, ReactorException,
-            URISyntaxException {
+    public void ignoringRevision2Test() throws Exception {
         SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/ignoring-revision-2",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);