JUnit 5 Tutorial

1. Import source code into Eclipse

Eclipse (Maven)

Menu File –> Import –> Maven –> Existing Maven Projects

Browse to your source code location

Click Finish button to finish the importing

Eclipse (Gradle)

Menu File –> Import –> Gradle Project –> Select Project --> Next until finish

2. Run the example

Open the JUnit5UserRepositoryImplFileTest.java

Right click -> Run As -> JUnit Test or use the shortcut: Alt+Shift+x, T to start the main method

All the source code are described in: JUnit 5 Basic Introduction

3. Related Posts