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;
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());
-
}
/*
*
*/
@Test
- public void testCorrectPathIntoUnsupportedTarget() throws URISyntaxException, SourceException, ReactorException {
+ public void testCorrectPathIntoUnsupportedTarget() throws Exception {
try {
modules = TestUtils.loadModules(getClass().getResource(
@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");