5. Formatter Test
See also FormatterTestCase
as convenient base class.
Define Test Data
Create the FormatterTestData.simple file in the testData directory.
Define a Test Method
Add the testFormatter()
method to the SimpleCodeInsightTest
class previously defined.
Again, this method configures the test fixture by using the test file.
The code style Simple Language settings for spaces and blank lines are set.
The file is then formatted according to the settings.
The formatted file is compared to the expected results in the benchmark file DefaultTestData.simple.
Run the Test
Run the test and make sure it's green.
Last modified: 29 δΉζ 2022