11package org .checkstyle .autofix .recipe ;
22
3+ import static org .junit .jupiter .api .Assertions .assertTrue ;
4+ import static org .openrewrite .java .Assertions .java ;
5+
36import org .junit .jupiter .api .Test ;
47import org .openrewrite .test .RecipeSpec ;
58import org .openrewrite .test .RewriteTest ;
69
7- import static org .junit .jupiter .api .Assertions .assertTrue ;
8- import static org .openrewrite .java .Assertions .java ;
9-
1010public class UpperEllRecipeTest implements RewriteTest {
1111
1212 @ Override
@@ -15,24 +15,24 @@ public void defaults(RecipeSpec spec) {
1515 }
1616
1717 @ Test
18- void fixesLowercaseLInLongLiteralsFromResources () {
18+ void fixesLowercase () {
1919 rewriteRun (
2020
2121 java (
22- "class Test {\n " +
23- " int value1 = 123l;\n " +
24- " long value2 = 0x123l;\n " +
25- " long value3 = 0123l;\n " +
26- " long value4 = 0b101l;\n " +
27- " String value5 = null;\n " +
28- "}\n " ,
29- "class Test {\n " +
30- " int value1 = 123L;\n " +
31- " long value2 = 0x123L;\n " +
32- " long value3 = 0123L;\n " +
33- " long value4 = 0b101L;\n " +
34- " String value5 = null;\n " +
35- "}\n "
22+ "class Test {\n "
23+ + " int value1 = 123l;\n "
24+ + " long value2 = 0x123l;\n "
25+ + " long value3 = 0123l;\n "
26+ + " long value4 = 0b101l;\n "
27+ + " String value5 = null;\n "
28+ + "}\n " ,
29+ "class Test {\n "
30+ + " int value1 = 123L;\n "
31+ + " long value2 = 0x123L;\n "
32+ + " long value3 = 0123L;\n "
33+ + " long value4 = 0b101L;\n "
34+ + " String value5 = null;\n "
35+ + "}\n "
3636 )
3737 );
3838 assertTrue (true , "Test completed successfully" );
0 commit comments