--- layout: editable title: 7. Folding Test --- In this test we will check if the folding builder, implemented in the [Folding Builder](folding_builder.html) section of the [Custom Language Support Tutorial](cls_tutorial.html), works as we expect. ### 1. Define test data Create a file *FoldingTestData.java*. ```java public class Test { public static void main(String[] args) { System.out.println("simple:website"); } } ``` ### 2. Define a test ```java public void testFolding() { myFixture.configureByFiles("DefaultTestData.simple"); myFixture.testFolding(getTestDataPath() + "/FoldingTestData.java"); } ``` ### 3. Run the test Run the test and make sure it's green. ----- [Previous](rename_test.html) [Top](writing_tests_for_plugins.html) [Next](find_usages_test.html)