mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
testing_faq.md: more useful link to mockJDK
This commit is contained in:
parent
ae4319bdd1
commit
030584ff3c
@ -183,7 +183,7 @@ Use [`WaitFor`](%gh-ic%/platform/util/src/com/intellij/util/WaitFor.java).
|
|||||||
<primary-label ref="IntelliJIDEA"/>
|
<primary-label ref="IntelliJIDEA"/>
|
||||||
|
|
||||||
Plugins supporting a JVM language may require JDK and language standard library to be set up in a test project, so that classes like `java.lang.String` can be correctly resolved during tests.
|
Plugins supporting a JVM language may require JDK and language standard library to be set up in a test project, so that classes like `java.lang.String` can be correctly resolved during tests.
|
||||||
Tests extending [`LightJavaCodeInsightFixtureTestCase`](%gh-ic%/java/testFramework/src/com/intellij/testFramework/fixtures/LightJavaCodeInsightFixtureTestCase.java) use one of the mock JDKs distributed with the [IntelliJ Community project](https://github.com/JetBrains/intellij-community) sources (notice <path>java/mockJDK-\$JAVA_VERSION\$</path> directories).
|
Tests extending [`LightJavaCodeInsightFixtureTestCase`](%gh-ic%/java/testFramework/src/com/intellij/testFramework/fixtures/LightJavaCodeInsightFixtureTestCase.java) use one of the mock JDKs in the [Java plugin](%gh-ic%/java) sources (notice <path>mockJDK-\$JAVA_VERSION\$</path> directories).
|
||||||
These JAR files are not available in plugin project dependencies, so the IntelliJ Community sources must be checked out to the machine running the tests, and sources' location must be provided to the test framework.
|
These JAR files are not available in plugin project dependencies, so the IntelliJ Community sources must be checked out to the machine running the tests, and sources' location must be provided to the test framework.
|
||||||
It's done by setting the `idea.home.path` system property to the absolute path of the checked-out sources in the `test` task configuration:
|
It's done by setting the `idea.home.path` system property to the absolute path of the checked-out sources in the `test` task configuration:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user