You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get an NullPointerException if we abort a test which is annotated with RepeatedIfExceptionsTest. Assume there is an JUnit5 extension to stop further test exectuions if there is some condition (see below). If the condition is met we will get a NPE in RepeatIfExceptionsExtension line 131 because repeatableExceptions is uninitialized.
public void beforeTestExecution(ExtensionContext context) throws Exception {
if (<some condition to stop further test exectution>) {
throw new TestAbortedException("Cancel this test");
}
}
The text was updated successfully, but these errors were encountered:
We get an NullPointerException if we abort a test which is annotated with RepeatedIfExceptionsTest. Assume there is an JUnit5 extension to stop further test exectuions if there is some condition (see below). If the condition is met we will get a NPE in
RepeatIfExceptionsExtension
line 131 becauserepeatableExceptions
is uninitialized.The text was updated successfully, but these errors were encountered: