-
Diffblue - A tool to generate Unit and Integration Tests
- Available in IntelliJ as a Plugin.
- Upgradable with License purchase.
-
Frameworks and Libraries used in this Project
- Java
- Rest API
- Spring Data JPA
- JUnit 5
- Mockito
- H2 In-Memory Database
-
Some important links
-
Test Case Steps
- Given
- When
- Then
-
Test Coverage
- Once we write few tests, we can check the Test Coverage for the particular class by Run Test with Coverage option.
- We can see the % covered for Classes level, Method level, Coverage by Lines.
- Based on that, we can add more tests for better coverage.
-
Mockito Matchers Vs Argument Matchers
harishankar-github / unit-and-integration-testing-using-junit-5-and-mockito Goto Github PK
View Code? Open in Web Editor NEWUnit and Integration Testing using JUnit 5 and Mockito