void () { getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; getSettings().SPACE_WITHIN_BRACES = true; getSettings().BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE; String singleLine = "if (2 > 3) { System.out.println(\"AA!\"); } else { System.out.println(\"BBB!!\"); }"; String multiLine = "if (2 > 3) { System.out.println(\"AA!\"); }\n" + "else { System.out.println(\"BBB!!\"); }"; getSettings().ELSE_ON_NEW_LINE = false; doMethodTest(singleLine, singleLine); doMethodTest(multiLine, singleLine); getSettings().ELSE_ON_NEW_LINE = true; doMethodTest(singleLine, multiLine); doMethodTest(multiLine, multiLine); }