IntelliJ Platform Plugin SDK Help

7. Folding Test

Define Test Data

Create a file FoldingTestData.java in the testData directory. This java file contains markup instructions for three different cases of code folding.

Define a Test

Add the testFolding() method to the SimpleCodeInsightTest class previously defined. This test method reuses the DefaultTestData.simple Simple file.

Run the Test

Run the test and make sure it's green.

Last modified: 29 九月 2022