O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JUnit 5 and Java 9 compatibility

Since M5, all JUnit 5 artifacts are shipped with compiled module descriptors for Java 9, declared in its JAR manifest (file MANIFEST.MF). For example, the content of the manifest for the artifact junit-jupiter-api M6 is the following:

Manifest-Version: 1.0Implementation-Title: junit-jupiter-apiAutomatic-Module-Name: org.junit.jupiter.apiBuild-Date: 2017-07-18Implementation-Version: 5.0.0-M6Built-By: JUnit TeamSpecification-Vendor: junit.orgSpecification-Title: junit-jupiter-apiImplementation-Vendor: junit.orgBuild-Revision: 3e6482ab8b0dc5376a4ca4bb42bef1eb454b6f1bBuild-Time: 21:26:15.224+0200Created-By: 1.8.0_131 (Oracle Corporation 25.131-b11)Specification-Version: 5.0.0

With regards to Java 9, the interesting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required