Update StmtTestUtils
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / AugmentToExtensionTest.java
index 071c6f51ed97239123b17dbd7366a567f6e20afa..3872378faa0c871111d26bbe7394fbbf600d67f1 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.yangtools.yang.stmt;
 
 import static org.junit.Assert.assertTrue;
 
-import java.net.URISyntaxException;
 import java.util.Set;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.common.QName;
@@ -17,17 +16,14 @@ import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
 import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.UsesNode;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.parser.spi.meta.SomeModifiersUnresolvedException;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 
 public class AugmentToExtensionTest {
     private Set<Module> modules;
 
     @Test(expected = SomeModifiersUnresolvedException.class)
-    public void testIncorrectPath() throws URISyntaxException, SourceException, ReactorException {
+    public void testIncorrectPath() throws Exception {
         modules = TestUtils.loadModules(getClass().getResource("/augment-to-extension-test/incorrect-path").toURI());
-
     }
 
     /*
@@ -35,7 +31,7 @@ public class AugmentToExtensionTest {
      *
      */
     @Test
-    public void testCorrectPathIntoUnsupportedTarget() throws URISyntaxException, SourceException, ReactorException {
+    public void testCorrectPathIntoUnsupportedTarget() throws Exception {
 
         try {
         modules = TestUtils.loadModules(getClass().getResource(
@@ -58,7 +54,7 @@ public class AugmentToExtensionTest {
 
 
     @Test
-    public void testCorrectAugment() throws URISyntaxException, SourceException, ReactorException {
+    public void testCorrectAugment() throws Exception {
         modules = TestUtils.loadModules(getClass().getResource("/augment-to-extension-test/correct-augment").toURI());
 
         final Module devicesModule = TestUtils.findModule(modules, "augment-module");