Skip to content

Move org.springframework.boot.test.Assume to test-support #10866

@sbrannen

Description

@sbrannen

The new class org.springframework.boot.test.Assume refers to "JUnit" ambiguously.

Note, however, that org.junit.AssumptionViolatedException is specific to JUnit 4.

Thus, use of org.springframework.boot.test.Assume with JUnit Jupiter (or any other testing framework) would result in a failed test instead of an aborted test.

Since JUnit Jupiter uses org.opentest4j.TestAbortedException from the OTA for failed assumptions, I highly recommend that org.springframework.boot.test.Assume refer explicitly to JUnit 4 so as to avoid any confusion.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions