void () { getSettings().KEEP_SIMPLE_METHODS_IN_ONE_LINE = true; getSettings().SPACE_WITHIN_BRACES = true; getSettings().ALIGN_SUBSEQUENT_SIMPLE_METHODS = true; doTextTest( """ public class Test { public void testSuperDuperLongName() { System.out.println("AAA"); } public void testCounterMounter() { System.out.println("XXXX"); } }""", """ public class Test { public void testSuperDuperLongName() { System.out.println("AAA"); } public void testCounterMounter() { System.out.println("XXXX"); } }""" ); }