Bug 6244: Add context to exceptions thrown by yang statement parser
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / CaseStmtTest.java
index 0aa86e76a78dfd25a866efaef689c7c67c1d5623..be6c02b0c79c37dfa527cba96430e16df3348923 100644 (file)
@@ -28,7 +28,6 @@ import org.opendaylight.yangtools.yang.model.api.ChoiceCaseNode;
 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.ChoiceEffectiveStatementImpl;
 import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.ContainerEffectiveStatementImpl;
@@ -535,13 +534,13 @@ public class CaseStmtTest {
 
     @Test
     public void InferenceExceptionChoiceTest() throws ReactorException, FileNotFoundException, URISyntaxException {
-        expectedEx.expect(InferenceException.class);
+        expectedEx.expect(ReactorException.class);
         schema = StmtTestUtils.parseYangSources("/case-test/case-test-exceptions/choice");
     }
 
     @Test
     public void InferenceExceptionCaseTest() throws ReactorException, FileNotFoundException, URISyntaxException {
-        expectedEx.expect(InferenceException.class);
+        expectedEx.expect(ReactorException.class);
         schema = StmtTestUtils.parseYangSources("/case-test/case-test-exceptions/case");
     }
 }
\ No newline at end of file