JUnit 5
JUnit 5 is composed of several different modules.
- JUnit Platform - the foundation for running JUnit in IDEs and build tools.
- JUnit Jupiter - code for writing tests.
- JUnit Vintage - for running JUnit 3 and JUnit 4 tests.
JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage
Creating a Test Case¶
Create a test case in Eclipse with File->New->JUnit Test Case (same as JUnit 4).
Choose New JUnit Jupiter test.

Then add JUnit5 to the build path.
Drill¶
- Create the package
JUnit5/test/com.example.junit5.drills. Be sure to do this in thetestsource directory.- Create a new JUnit 5 Test Case called
AccountTests.