void () { getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; getSettings().SPACE_WITHIN_BRACES = true; String before = "for (String arg : args) { System.out.println(\"AAA!\"); }"; String after = "for (String arg : args) { System.out.println(\"AAA!\"); }"; checkFormatterWithDifferentBraceStyles(before, after, after, after, after); }