import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import java.io.FileNotFoundException;
-import java.net.URISyntaxException;
-import java.text.ParseException;
import java.util.Date;
import java.util.Set;
import org.junit.Test;
public class IdentityrefStatementTest {
@Test
- public void testIdentityrefWithMultipleBaseIdentities() throws ReactorException, FileNotFoundException,
- URISyntaxException, ParseException {
+ public void testIdentityrefWithMultipleBaseIdentities() throws Exception {
final SchemaContext schemaContext = StmtTestUtils.parseYangSource("/rfc7950/identityref-stmt/foo.yang");
assertNotNull(schemaContext);
}
@Test
- public void testInvalidYang10() throws ReactorException, FileNotFoundException, URISyntaxException {
+ public void testInvalidYang10() throws Exception {
try {
StmtTestUtils.parseYangSource("/rfc7950/identityref-stmt/foo10.yang");
fail("Test should fail due to invalid Yang 1.0");