我在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