Skip to content

Commit 65ad007

Browse files
committed
Enable each JDK's cases from that JDK on, with no upper bound
FormatterCasesJava21Test runs from JDK 21, Java25Test from 25 and Java28Test from 28. On a newer JDK the cases of the older folders run once more in the newer classes.
1 parent 5cad7a9 commit 65ad007

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎open-java-format/src/test/java/com/palantir/javaformat/java/FormatterCasesJava21Test.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import org.junit.jupiter.api.parallel.Execution;
2323
import org.junit.jupiter.api.parallel.ExecutionMode;
2424

25-
/** The cases on JDK 21 to 24, which parse the syntax of JDK 21. */
26-
@EnabledForJreRange(max = JRE.JAVA_24)
25+
/** The cases on JDK 21 and later: those for the syntax of JDK 21. */
26+
@EnabledForJreRange(min = JRE.JAVA_21)
2727
@Execution(ExecutionMode.CONCURRENT)
2828
final class FormatterCasesJava21Test {
2929
@TestFactory

‎open-java-format/src/test/java/com/palantir/javaformat/java/FormatterCasesJava25Test.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import org.junit.jupiter.api.parallel.Execution;
2323
import org.junit.jupiter.api.parallel.ExecutionMode;
2424

25-
/** The cases on JDK 25 to 27: those of JDK 21, and those for the syntax of JDK 25. */
26-
@EnabledForJreRange(min = JRE.JAVA_25, max = JRE.JAVA_27)
25+
/** The cases on JDK 25 and later: those of JDK 21, and those for the syntax of JDK 25. */
26+
@EnabledForJreRange(min = JRE.JAVA_25)
2727
@Execution(ExecutionMode.CONCURRENT)
2828
final class FormatterCasesJava25Test {
2929
@TestFactory

0 commit comments

Comments
 (0)