JUnit5 and Spring Boot

This video shows how to add junit5 to an existing Spring Boot application. I also show the most commonly used features of junit5.

These are the dependencies needed (remember to check if newer versions are available):

testCompile("org.junit.jupiter:junit-jupiter-api:5.4.2")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.4.2")
testRuntime("org.junit.platform:junit-platform-launcher:1.3.2")

Leave a Reply

Your email address will not be published. Required fields are marked *