IntelliJ Platform Plugin SDK Help

8. Find Usages Test

Define the Test Data

Create the FindUsagesTestData.simple file in the testData directory.

Create the test file FindUsagesTestData.java, which contains one embedded Simple Language prefix and key.

Define a Test Method

Add the testFindUsages() method to the SimpleCodeInsightTest class previously defined. This test verifies the find usage functionality will identify the "key with spaces".

Run the Test

Run the test and make sure it's green.

Last modified: 29 九月 2022