Skip to content

Commit 18adf90

Browse files
committed
Polishing
1 parent ce9a72f commit 18adf90

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

gradle/toolchains.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* One can choose the toolchain to use for compiling the MAIN sources and/or compiling
66
* and running the TEST sources. These options apply to Java, Kotlin and Groovy sources
77
* when available.
8-
* {@code "./gradlew check -PmainToolchain=17 -PtestToolchain=19"} will use:
8+
* {@code "./gradlew check -PmainToolchain=17 -PtestToolchain=20"} will use:
99
* <ul>
1010
* <li>a JDK17 toolchain for compiling the main SourceSet
11-
* <li>a JDK19 toolchain for compiling and running the test SourceSet
11+
* <li>a JDK20 toolchain for compiling and running the test SourceSet
1212
* </ul>
1313
*
1414
* By default, the build will fall back to using the current JDK and 17 language level for all sourceSets.
@@ -23,9 +23,9 @@
2323
* {@code
2424
* $ echo JDK17
2525
* /opt/openjdk/java17
26-
* $ echo JDK19
27-
* /opt/openjdk/java18
28-
* $ ./gradlew -Porg.gradle.java.installations.fromEnv=JDK17,JDK19 check
26+
* $ echo JDK20
27+
* /opt/openjdk/java20
28+
* $ ./gradlew -Porg.gradle.java.installations.fromEnv=JDK17,JDK20 check
2929
* }
3030
*
3131
* @author Brian Clozel

spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
import org.junit.jupiter.api.BeforeAll;
2323
import org.junit.jupiter.api.Test;
24-
import org.junit.jupiter.api.condition.DisabledOnJre;
25-
import org.junit.jupiter.api.condition.JRE;
24+
import org.junit.jupiter.api.condition.DisabledForJreRange;
2625
import reactor.blockhound.BlockHound;
2726
import reactor.core.scheduler.ReactorBlockHoundIntegration;
2827
import reactor.core.scheduler.Schedulers;
@@ -31,6 +30,7 @@
3130

3231
import static org.assertj.core.api.Assertions.assertThat;
3332
import static org.assertj.core.api.Assertions.assertThatThrownBy;
33+
import static org.junit.jupiter.api.condition.JRE.JAVA_18;
3434

3535
/**
3636
* Tests to verify the spring-core BlockHound integration rules.
@@ -47,7 +47,7 @@
4747
* @author Sam Brannen
4848
* @since 5.2.4
4949
*/
50-
@DisabledOnJre(value= {JRE.JAVA_18, JRE.JAVA_19, JRE.JAVA_20}, disabledReason = "BlockHound is not compatible with Java 18+")
50+
@DisabledForJreRange(min = JAVA_18, disabledReason = "BlockHound is not compatible with Java 18+")
5151
class SpringCoreBlockHoundIntegrationTests {
5252

5353
@BeforeAll

spring-orm/src/test/java/org/springframework/orm/jpa/ApplicationManagedEntityManagerIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
import jakarta.persistence.TransactionRequiredException;
2525
import org.junit.jupiter.api.Test;
2626
import org.junit.jupiter.api.condition.DisabledOnJre;
27-
import org.junit.jupiter.api.condition.JRE;
2827

2928
import org.springframework.orm.jpa.domain.Person;
3029

3130
import static org.assertj.core.api.Assertions.assertThat;
3231
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
32+
import static org.junit.jupiter.api.condition.JRE.JAVA_18;
3333

3434
/**
3535
* An application-managed entity manager can join an existing transaction,
@@ -39,7 +39,7 @@
3939
* @author Juergen Hoeller
4040
* @since 2.0
4141
*/
42-
@DisabledOnJre(value = JRE.JAVA_18)
42+
@DisabledOnJre(JAVA_18)
4343
public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
4444

4545
@Test

spring-orm/src/test/java/org/springframework/orm/jpa/ContainerManagedEntityManagerIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import jakarta.persistence.TransactionRequiredException;
2626
import org.junit.jupiter.api.Test;
2727
import org.junit.jupiter.api.condition.DisabledOnJre;
28-
import org.junit.jupiter.api.condition.JRE;
2928

3029
import org.springframework.beans.factory.annotation.Autowired;
3130
import org.springframework.dao.DataAccessException;
@@ -35,6 +34,7 @@
3534
import static org.assertj.core.api.Assertions.assertThat;
3635
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
3736
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
37+
import static org.junit.jupiter.api.condition.JRE.JAVA_18;
3838

3939
/**
4040
* Integration tests using in-memory database for container-managed JPA
@@ -43,7 +43,7 @@
4343
* @author Juergen Hoeller
4444
* @since 2.0
4545
*/
46-
@DisabledOnJre(value = JRE.JAVA_18)
46+
@DisabledOnJre(JAVA_18)
4747
public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
4848

4949
@Autowired

spring-orm/src/test/java/org/springframework/orm/jpa/eclipselink/EclipseLinkEntityManagerFactoryIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
import org.eclipse.persistence.jpa.JpaEntityManager;
2020
import org.junit.jupiter.api.Test;
2121
import org.junit.jupiter.api.condition.DisabledOnJre;
22-
import org.junit.jupiter.api.condition.JRE;
2322

2423
import org.springframework.orm.jpa.AbstractContainerEntityManagerFactoryIntegrationTests;
2524
import org.springframework.orm.jpa.EntityManagerFactoryInfo;
2625

2726
import static org.assertj.core.api.Assertions.assertThat;
27+
import static org.junit.jupiter.api.condition.JRE.JAVA_18;
2828

2929
/**
3030
* EclipseLink-specific JPA tests.
3131
*
3232
* @author Juergen Hoeller
3333
*/
34-
@DisabledOnJre(value = JRE.JAVA_18)
34+
@DisabledOnJre(JAVA_18)
3535
public class EclipseLinkEntityManagerFactoryIntegrationTests extends AbstractContainerEntityManagerFactoryIntegrationTests {
3636

3737
@Test

0 commit comments

Comments
 (0)