示例#1
0
 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();
 }
示例#2
0
 private void enter() {
   oper.pushKey(KeyEvent.VK_ENTER);
 }