You can specify all versions
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.6.1</version>
<scope>test</scope>
</dependency>
Read More:
- [Solved] Failed to resolve org.junit.platform:junit-platform-launcher:1.7.2
- Failed to resolve org.junit.platform:junit-platform-launcher:1.7.0
- org.junit.platform.commons.JUnitException: TestEngine with ID ‘junit-vintage‘ failed to discover tes
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- Spring nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey
- Android studio failed to resolve: junit:junit : 4.12 solutions
- import org.junit.Test And @ test error reporting — solutions
- The usage of Java JUnit unit test and the solution of initialization error
- Spring integrates JUnit configuration
- NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper
- Android appears java.lang.NoClassDefFoundError A solution to the error
- Spock + powermock simulation static method reports an error java.lang.classcastexception
- appear java.lang.NoClassDefFoundError A kind of reason and solution of the mistake
- NoClassDefFoundError: org.springframework.validation.annotation.ValidationAnnotationUtils
- How to Fix:java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost
- Spring configuration transaction, JUnit unit test error “failed to load ApplicationContext”
- How to Fix “junit.framework.Comparison Failure Expected: but was”
- Spring boot running appears java.lang.IllegalStateException : Failed to load ApplicationContext
- NoClassDefFoundError: org/apache/flink/metrics/MetricGroup
- Used by: Java. Lang. classnotfoundexception: org. PostgreSQL. Driver