public void testBasicIndentation() { oper.setCaretPosition(279, 1); oper.pushEndKey(); oper.pushKey(KeyEvent.VK_ENTER); oper.pushKey(KeyEvent.VK_ENTER); oper.txtEditorPane().typeText("public void method(boolean cond1"); oper.pushEndKey(); oper.txtEditorPane().typeText("{"); oper.pushKey(KeyEvent.VK_ENTER); oper.txtEditorPane().typeText("if(cond1"); oper.pushEndKey(); oper.txtEditorPane().typeText("sout"); oper.pushTabKey(); oper.txtEditorPane().typeText("Hello"); oper.pushEndKey(); }
private void enter() { oper.pushKey(KeyEvent.VK_ENTER); }