File tree 1 file changed +8
-4
lines changed
src/main/java/org/junit/rules
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,14 @@ public ExpectedException expectCause(Matcher<?> expectedCause) {
245
245
return this ;
246
246
}
247
247
248
+ /**
249
+ * Check if any Exception is expected.
250
+ * @since 4.13
251
+ */
252
+ public final boolean isAnyExceptionExpected () {
253
+ return matcherBuilder .expectsThrowable ();
254
+ }
255
+
248
256
private class ExpectedExceptionStatement extends Statement {
249
257
private final Statement next ;
250
258
@@ -274,10 +282,6 @@ private void handleException(Throwable e) throws Throwable {
274
282
}
275
283
}
276
284
277
- private boolean isAnyExceptionExpected () {
278
- return matcherBuilder .expectsThrowable ();
279
- }
280
-
281
285
private void failDueToMissingException () throws AssertionError {
282
286
fail (missingExceptionMessage ());
283
287
}
You can’t perform that action at this time.
0 commit comments