import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
-import java.io.FileNotFoundException;
-import java.net.URISyntaxException;
import org.junit.Test;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
import org.opendaylight.yangtools.yang.model.api.SchemaNode;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.util.SchemaContextUtil;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
public class Bug6669Test {
private static final String REV = "2016-09-08";
private static final QName L = QName.create(BAR_NS, REV, "l");
@Test
- public void testInvalidAugment() throws SourceException, ReactorException, FileNotFoundException,
- URISyntaxException {
+ public void testInvalidAugment() throws Exception {
final SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug6669/invalid/test1");
assertNotNull(context);
}
@Test
- public void testInvalidAugment2() throws SourceException, ReactorException, FileNotFoundException,
- URISyntaxException {
+ public void testInvalidAugment2() throws Exception {
final SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug6669/invalid/test2");
assertNotNull(context);
}
@Test
- public void testInvalidAugment3() throws SourceException, ReactorException, FileNotFoundException,
- URISyntaxException {
+ public void testInvalidAugment3() throws Exception {
final SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug6669/invalid/test3");
assertNotNull(context);
}
@Test
- public void testValidAugment() throws SourceException, ReactorException, FileNotFoundException, URISyntaxException {
+ public void testValidAugment() throws Exception {
final SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug6669/valid/test1");
assertNotNull(context);
}
@Test
- public void testValidAugment2() throws SourceException, ReactorException, FileNotFoundException, URISyntaxException {
+ public void testValidAugment2() throws Exception {
final SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug6669/valid/test2");
assertNotNull(context);
}
@Test
- public void testValidAugment3() throws SourceException, ReactorException, FileNotFoundException, URISyntaxException {
+ public void testValidAugment3() throws Exception {
final SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug6669/valid/test3");
assertNotNull(context);