我在IntelliJ安装中为JUnit 5导入了Maven导入,并且导致缓存失效并重新启动。IntelliJ不会自动完成JUnit 5木星类
IntelliJ将拒绝自动完成(CTRL-SPACE
)任何类或任何属于org.junit.jupiter.api.
包中的类的静态方法,除非已明确指出类的完全限定名。即使在编写该类所属的包时,也不会建议该包的类。
的IntelliJ的版本是2017年2月1日。木星版本是5.0.0-RC2,平台是1.0.0-RC2。
我不确定如何从这里继续前进。为什么这个软件包是唯一一个似乎拒绝基本完成的软件包?
<properties>
<junit.jupiter.version>5.0.0-RC2</junit.jupiter.version>
<junit.platform.version>1.0.0-RC2</junit.platform.version>
</properties>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<!-- Only required to run tests in an IDE that bundles an older version -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>${junit.platform.version}</version>
<scope>test</scope>
</dependency>
<!-- Only required to run tests in an IDE that bundles an older version -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
</dependency>
原来的JUnit 4排除列表,JUnit的5和TestNG都从自动导入,这可能是我排除在外做什么,我不记得自己做这个... – Hay