Update StmtTestUtils
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / semver / SemanticVersionPositionTest.java
index a869ba50ad77400718a0cf8f9f42e9bde12c7559..0c817baf00577189071b556e1fe9556958b1d025 100644 (file)
@@ -10,23 +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 SemanticVersionPositionTest {
 
     @Test
-    public void positionHeadTest() throws SourceException, FileNotFoundException, ReactorException, URISyntaxException {
+    public void positionHeadTest() throws Exception {
         SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/position/position-head",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
@@ -42,8 +37,7 @@ public class SemanticVersionPositionTest {
     }
 
     @Test
-    public void positionMiddleTest() throws SourceException, FileNotFoundException, ReactorException,
-            URISyntaxException {
+    public void positionMiddleTest() throws Exception {
         SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/position/position-middle",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);
@@ -59,7 +53,7 @@ public class SemanticVersionPositionTest {
     }
 
     @Test
-    public void positiontailTest() throws SourceException, FileNotFoundException, ReactorException, URISyntaxException {
+    public void positiontailTest() throws Exception {
         SchemaContext context = StmtTestUtils.parseYangSources("/semantic-version/position/position-tail",
                 StatementParserMode.SEMVER_MODE);
         assertNotNull(context);