For springboot project, when using applicationtests to test, the following error will be prompted:
11:47 am Error running ‘ShiroDemoApplicationTests.contextLoads’: Failed to resolve org.junit. platform:junit-platform-launcher :1.7.2
Reason: IntelliJ idea version and JUnit version do not match
solve:
1. Add the following dependencies to the pom.xml file of the project:
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
2. It is more troublesome to adjust the two versions to match. The first method is recommended.
Read More:
- 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.NoClassDefFoundError: org/junit/platform/launcher/TestExecutionListener
- Android studio failed to resolve: junit:junit : 4.12 solutions
- import org.junit.Test And @ test error reporting — solutions
- Spring configuration transaction, JUnit unit test error “failed to load ApplicationContext”
- Failed to load platform rendering library
- Spring integrates JUnit configuration
- Troubleshooting of Jenkins upgrade to 2.42 JUnit test report
- How to Fix “junit.framework.Comparison Failure Expected: but was”
- The app failed to start because there is no Qt platform to initialize
- This application failed to start because it could not find or load the QT platform
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- The usage of Java JUnit unit test and the solution of initialization error
- This application failed to start because it could not find or load the Qt platform plugin “windows”.
- Rendering Problems :Failed to load platform rendering library
- Junit4 unit test reports an error invalid project specified
- Vitis: platform out of date, makefile error at compile time; The modified application compiles to undefined reference
- Solution to a Jenkins serious error recorded by automation platform
- ERROR: pygame-1.9.2-cp35-cp35m-win32.whl is not a supported wheel on this platform.