Spring boot 2 with Junit 5 and Mockito 2 for unit testing and integration test
Sep 6, 2018 · 1 min read
Here we will explain to use Junit 5 and Mockito 2 with Spring boot 2 when it comes to unit testing and integration tests .

First if you are interested to read more about Junit 5 and Mockito 2 , please check the following links :
- Junit 5: https://junit.org/junit5/
- Mockito 2 : https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2
Here we will show to the following :
- Gradle configuration for Junit 5 with spring boot 2
- How to define and execute unit test with Junit 5 and mockito 2
- How to define and execute spring boot integration test with Junit 5
The whole details of the above points covered in my blog post : https://mromeh.com/2018/09/05/spring-boot-2-with-junit-5-and-mockito-2-for-unit-testing-and-integration-test/