File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless
testlib/src/test/java/com/diffplug/spotless/java Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2016-2021 DiffPlug
2+ * Copyright 2016-2025 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1515 */
1616package com .diffplug .gradle .spotless ;
1717
18- import static org .junit .jupiter .api .condition .JRE .JAVA_14 ;
19-
2018import java .io .IOException ;
2119
2220import org .junit .jupiter .api .Test ;
23- import org .junit .jupiter .api .condition .EnabledForJreRange ;
2421
2522class FreshMarkExtensionTest extends GradleIntegrationHarness {
2623 @ Test
27- @ EnabledForJreRange (max = JAVA_14 )
2824 void integration () throws IOException {
2925 setFile ("build.gradle" ).toLines (
3026 "plugins {" ,
Original file line number Diff line number Diff line change 1515 */
1616package com .diffplug .spotless .java ;
1717
18- import static org .junit .jupiter .api .condition .JRE .JAVA_15 ;
1918import static org .junit .jupiter .api .condition .JRE .JAVA_20 ;
2019import static org .junit .jupiter .api .condition .JRE .JAVA_21 ;
2120
@@ -39,9 +38,8 @@ void jvm13Features() throws Exception {
3938 }
4039
4140 @ Test
42- @ EnabledForJreRange (max = JAVA_15 ) // google-java-format requires JRE 11+
4341 void behavior18 () throws Exception {
44- FormatterStep step = GoogleJavaFormatStep .create ("1.8" , TestProvisioner .mavenCentral ());
42+ FormatterStep step = GoogleJavaFormatStep .create (TestProvisioner .mavenCentral ());
4543 StepHarness .forStep (step )
4644 .testResource ("java/googlejavaformat/JavaCodeUnformatted.test" , "java/googlejavaformat/JavaCodeFormatted18.test" )
4745 .testResource ("java/googlejavaformat/JavaCodeWithLicenseUnformatted.test" , "java/googlejavaformat/JavaCodeWithLicenseFormatted.test" )
You can’t perform that action at this time.
0 commit comments