Unit Testing With JUnit5
Architecture Table of Contents Architecture JUnit Jupiter Module JUnit Platform Module JUnit Vintage Module Artifacts Until JUnit 5.4 From JUnit 5.4 Gradle Native Support Mockito3 Static Method Mocking @Mock Vs @InjectMock @Mock Vs @Spy Source Code Additional Scenarios Architecture Unlike JUnit4, JUnit5 promotes a better separation of concerns and comes with following modules. JUnit Jupiter Module JUnit Platform Module JUnit Vintage Module junit-jupiter-migration-support: - supports backward compatibility to select JUnit 4 Rules. JUnit Jupiter Module This Aggregator dependency( junit-jupiter ) Contains Three Child Dependencies API against which we write tests ( junit-jupiter-api ) Engine that understands it.( junit-jupiter-engine ) Jupiter Parameters library, which helps to write parameterized tests ( junit-jupiter-params ) If you are writing tests on JUnit5 this is the only dependency you need