Searched refs:getExpectedException (Results 1 – 3 of 3) sorted by relevance
42 protected Class<? extends Throwable> getExpectedException() { in getExpectedException() method in TestMethod52 return !getExpectedException().isAssignableFrom(exception.getClass()); in isUnexpected()56 return getExpectedException() != null; in expectsException()
110 …addFailure(new AssertionError("Expected exception: " + testMethod.getExpectedException().getName()… in runTestMethod()119 …String message = "Unexpected exception, expected<" + testMethod.getExpectedException().getName() +… in runTestMethod()
303 getExpectedException(annotation)) : next; in possiblyExpectingExceptions()419 private Class<? extends Throwable> getExpectedException(Test annotation) { in getExpectedException() method in BlockJUnit4ClassRunner428 return getExpectedException(annotation) != null; in expectsException()