RFR: 8332922: Test java/io/IO/IO.java fails when /usr/bin/expect not exist
Alan Bateman
alanb at openjdk.org
Sun May 26 06:19:11 UTC 2024
On Sun, 26 May 2024 06:06:50 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> SkippedException works with jtreg tests only. For jUnit you need to use [Assumptions.abort](https://junit.org/junit5/docs/5.9.1/api/org.junit.jupiter.api/org/junit/jupiter/api/Assumptions.html#abort(java.lang.String))
Yes, the Assumptions API should be used here. We use that in several JUnit tests that skip when tests when they can't run and you want it to fail the test.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19403#discussion_r1615032893
More information about the core-libs-dev
mailing list