@@ -330,12 +330,13 @@ public void stringEscapeLength() throws Exception {
330330
331331 @ Test
332332 public void wrapLineComment () throws Exception {
333- assertThat (Formatter .create ().formatSource ("class T {\n "
334- + " public static void main(String[] args) { // one long incredibly"
335- + " unbroken sentence moving from topic to topic so that no-one had a"
336- + " chance to interrupt;\n "
337- + " }\n "
338- + "}\n " ))
333+ assertThat (Formatter .create ()
334+ .formatSource ("class T {\n "
335+ + " public static void main(String[] args) { // one long incredibly"
336+ + " unbroken sentence moving from topic to topic so that no-one had a"
337+ + " chance to interrupt;\n "
338+ + " }\n "
339+ + "}\n " ))
339340 .isEqualTo ("class T {\n "
340341 + " public static void main(\n "
341342 + " String[]\n "
@@ -348,12 +349,13 @@ public void wrapLineComment() throws Exception {
348349
349350 @ Test
350351 public void onlyWrapLineCommentOnWhitespace () throws Exception {
351- assertThat (Formatter .create ().formatSource ("class T {\n "
352- + " public static void main(String[] args) { // one_long_incredibly"
353- + "_unbroken_sentence_moving_from_topic_to_topic_so_that_no-one_had_a"
354- + "_chance_to_interrupt;\n "
355- + " }\n "
356- + "}\n " ))
352+ assertThat (Formatter .create ()
353+ .formatSource ("class T {\n "
354+ + " public static void main(String[] args) { // one_long_incredibly"
355+ + "_unbroken_sentence_moving_from_topic_to_topic_so_that_no-one_had_a"
356+ + "_chance_to_interrupt;\n "
357+ + " }\n "
358+ + "}\n " ))
357359 .isEqualTo ("class T {\n "
358360 + " public static void main(\n "
359361 + " String[]\n "
@@ -366,12 +368,13 @@ public void onlyWrapLineCommentOnWhitespace() throws Exception {
366368
367369 @ Test
368370 public void onlyWrapLineCommentOnWhitespace_noLeadingWhitespace () throws Exception {
369- assertThat (Formatter .create ().formatSource ("class T {\n "
370- + " public static void main(String[] args) { //one_long_incredibly"
371- + "_unbroken_sentence_moving_from_topic_to_topic_so_that_no-one_had_a"
372- + "_chance_to_interrupt;\n "
373- + " }\n "
374- + "}\n " ))
371+ assertThat (Formatter .create ()
372+ .formatSource ("class T {\n "
373+ + " public static void main(String[] args) { //one_long_incredibly"
374+ + "_unbroken_sentence_moving_from_topic_to_topic_so_that_no-one_had_a"
375+ + "_chance_to_interrupt;\n "
376+ + " }\n "
377+ + "}\n " ))
375378 .isEqualTo ("class T {\n "
376379 + " public static void main(\n "
377380 + " String[]\n "
@@ -420,11 +423,12 @@ public void blankLinesImportComment() throws FormatterException {
420423
421424 @ Test
422425 public void dontWrapMoeLineComments () throws Exception {
423- assertThat (Formatter .create ().formatSource ("class T {\n "
424- + " // MOE: one long incredibly"
425- + " unbroken sentence moving from topic to topic so that no-one had a"
426- + " chance to interrupt;\n "
427- + "}\n " ))
426+ assertThat (Formatter .create ()
427+ .formatSource ("class T {\n "
428+ + " // MOE: one long incredibly"
429+ + " unbroken sentence moving from topic to topic so that no-one had a"
430+ + " chance to interrupt;\n "
431+ + "}\n " ))
428432 .isEqualTo ("class T {\n "
429433 + " // MOE: one long incredibly"
430434 + " unbroken sentence moving from topic to topic so that no-one had a"
0 commit comments