void () { final List<String> data = TestUtils.readInput(getTestDataPath() + getTestName(true) + ".test"); final String initial = data.get(0); final String upper = data.get(1); String lower = data.size() == 2 ? data.get(0) : data.get(2); myFixture.configureByText(GroovyFileType.GROOVY_FILE_TYPE, initial); performAction(IdeActions.ACTION_MOVE_STATEMENT_UP_ACTION); myFixture.checkResult(upper); performAction(IdeActions.ACTION_MOVE_STATEMENT_DOWN_ACTION); if (!lower.endsWith("\n") && myFixture.getEditor().getDocument().getText().endsWith("\n")) lower += "\n"; myFixture.checkResult(lower); }