breandan considine 7b75f3ad99 Replaced internal .html links with .md extension
Find: (\([^:\)]+\.)html\)

Replace: $1md\)
2015-08-06 19:38:31 -04:00

989 B

title
9. Commenter Test

In this test we will check if the commenter, implemented in the Commenter section of the Custom Language Support Tutorial, works as we expect.

9.1. Define a test method

public void testCommenter() {
    myFixture.configureByText(SimpleFileType.INSTANCE, "<caret>website = http://en.wikipedia.org/");
    CommentByLineCommentAction commentAction = new CommentByLineCommentAction();
    commentAction.actionPerformedImpl(getProject(), myFixture.getEditor());
    myFixture.checkResult("#website = http://en.wikipedia.org/");
    commentAction.actionPerformedImpl(getProject(), myFixture.getEditor());
    myFixture.checkResult("website = http://en.wikipedia.org/");
}

9.2. Run the test

Run the test and make sure it's green.


Previous Top Next