diff --git a/core/src/test/java/com/google/googlejavaformat/java/FormatterIntegrationTest.java b/core/src/test/java/com/google/googlejavaformat/java/FormatterIntegrationTest.java index 5fb356750..26493b022 100644 --- a/core/src/test/java/com/google/googlejavaformat/java/FormatterIntegrationTest.java +++ b/core/src/test/java/com/google/googlejavaformat/java/FormatterIntegrationTest.java @@ -104,10 +104,9 @@ public static Iterable data() throws IOException { String expectedOutput = outputs.get(fileName); Optional version = VERSIONED_TESTS.inverse().get(fileName).stream().collect(toOptional()); - if (Runtime.version().feature() < version.orElse(Integer.MAX_VALUE)) { - continue; + if (Runtime.version().feature() >= version.orElse(Integer.MIN_VALUE)) { + testInputs.add(new Object[] {fileName, input, expectedOutput}); } - testInputs.add(new Object[] {fileName, input, expectedOutput}); } return testInputs; }