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