title |
---|
4. Annotator Test |
In this test we will check if the annotator, implemented in the Annotator section of the Custom Language Support Tutorial works as we expect.
Create a file AnnotatorTestData.java.
public class Test {
public static void main(String[] args) {
System.out.println("simple:website");
System.out.println("simple:<error descr="Unresolved property">websit"</error>);
}
}
public void testAnnotator() {
myFixture.configureByFiles("AnnotatorTestData.java", "DefaultTestData.simple");
myFixture.checkHighlighting(false, false, true);
}
Run the test and make sure it's green.