import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
+
+import com.google.common.base.VerifyException;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.parser.spi.meta.MissingSubstatementException;
import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
import org.opendaylight.yangtools.yang.stmt.TestUtils;
@Test
public void missingElementException() throws URISyntaxException, ReactorException {
- expectedEx.expect(MissingSubstatementException.class);
+ expectedEx.expect(VerifyException.class);
Set<Module> modules = TestUtils.loadModules(getClass().getResource
("/substatement-validator/missing-element").toURI());