The idea prompts an error when running the test. Failed to resolve org. JUnit. Platform: JUnit platform launcher: 1.7.0
POM add dependency
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.7.0</version>
<scope>test</scope>
</dependency>