Skip to content

NullPointerException if RepeatedTest is cancelled #66

Open
@greenflash1986

Description

@greenflash1986

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");
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions