When trying to run tests using command mvn test I receive an error:
[ERROR] There was an error in the forked process
[ERROR] java.lang.NoClassDefFou
As others suggested, using JUnit 5.5.2
version is the way to go here.
There are different alternatives to achieve this:
spring-boot-starter-parent
, you can upgrade it to 2.2.0.RELEASE
spring-boot-starter-parent
(or spring-boot-dependencies
), you can define a property to update just JUnit: 5.5.2