我试图在IntelliJ CE 2017.2.3中转换为JUnit 5版本并体验以下内容:
使用JUnit 4运行相同的测试,错误仅在升级时显示。
pom.xml部分:
<!-- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>RELEASE</version>
</dependency>
</dependencies>
这些Java代码段可能是相关的:
我做错了什么?
答案 0 :(得分:1)
This looks like this issue. Please upgrade to latest IDE version which has updated JUnit libraries and should be working fine.