I have a spring-boot application which uses spring-boot version 1.5.9.RELEASE
. To test this application I want to use junit-jupiter version 5.0.2
.
For simple service tests it works without any problems. But when it comes to testing rest endpoints, I am failing. The reason is the @RunWith(SpringRunner.class)
annotation, which I used with junit4 to wire the everything together.
Is there a SpringRunner
for junit5 before spring-boot 2?
Update
I just stumbled over an article on how to run JUnit5 tests. Point 4 looks like a promising start.