Skip to content

Commit 7986002

Browse files
committed
Lock the jvm-version related tests down to just one version.
1 parent 16c1cde commit 7986002

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testlib/src/test/java/com/diffplug/spotless/java/GoogleJavaFormatStepTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
import static org.junit.jupiter.api.condition.JRE.JAVA_13;
1919
import static org.junit.jupiter.api.condition.JRE.JAVA_15;
20-
import static org.junit.jupiter.api.condition.JRE.JAVA_16;
2120
import static org.junit.jupiter.api.condition.JRE.JAVA_20;
21+
import static org.junit.jupiter.api.condition.JRE.JAVA_21;
2222

2323
import org.junit.jupiter.api.Test;
2424
import org.junit.jupiter.api.condition.EnabledForJreRange;
@@ -62,6 +62,7 @@ void behavior() throws Exception {
6262
}
6363

6464
@Test
65+
@EnabledForJreRange(min = JAVA_21, max = JAVA_21)
6566
void versionBelowMinimumRequiredVersionIsNotAllowed() throws Exception {
6667
FormatterStep step = GoogleJavaFormatStep.create("1.2", "AOSP", TestProvisioner.mavenCentral());
6768
StepHarness.forStepNoRoundtrip(step)
@@ -70,7 +71,7 @@ void versionBelowMinimumRequiredVersionIsNotAllowed() throws Exception {
7071
}
7172

7273
@Test
73-
@EnabledForJreRange(min = JAVA_16)
74+
@EnabledForJreRange(min = JAVA_21, max = JAVA_21)
7475
void versionBelowOneDotTenIsNotAllowed() throws Exception {
7576
FormatterStep step = GoogleJavaFormatStep.create("1.9", "AOSP", TestProvisioner.mavenCentral());
7677
StepHarness.forStepNoRoundtrip(step)

0 commit comments

Comments
 (0)