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);
}
@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);
}
@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);