File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
testlib/src/test/java/com/diffplug/spotless/java Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import static org .junit .jupiter .api .condition .JRE .JAVA_13 ;
19
19
import static org .junit .jupiter .api .condition .JRE .JAVA_15 ;
20
- import static org .junit .jupiter .api .condition .JRE .JAVA_16 ;
21
20
import static org .junit .jupiter .api .condition .JRE .JAVA_20 ;
21
+ import static org .junit .jupiter .api .condition .JRE .JAVA_21 ;
22
22
23
23
import org .junit .jupiter .api .Test ;
24
24
import org .junit .jupiter .api .condition .EnabledForJreRange ;
@@ -62,6 +62,7 @@ void behavior() throws Exception {
62
62
}
63
63
64
64
@ Test
65
+ @ EnabledForJreRange (min = JAVA_21 , max = JAVA_21 )
65
66
void versionBelowMinimumRequiredVersionIsNotAllowed () throws Exception {
66
67
FormatterStep step = GoogleJavaFormatStep .create ("1.2" , "AOSP" , TestProvisioner .mavenCentral ());
67
68
StepHarness .forStepNoRoundtrip (step )
@@ -70,7 +71,7 @@ void versionBelowMinimumRequiredVersionIsNotAllowed() throws Exception {
70
71
}
71
72
72
73
@ Test
73
- @ EnabledForJreRange (min = JAVA_16 )
74
+ @ EnabledForJreRange (min = JAVA_21 , max = JAVA_21 )
74
75
void versionBelowOneDotTenIsNotAllowed () throws Exception {
75
76
FormatterStep step = GoogleJavaFormatStep .create ("1.9" , "AOSP" , TestProvisioner .mavenCentral ());
76
77
StepHarness .forStepNoRoundtrip (step )
You can’t perform that action at this time.
0 commit comments