File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed
spring-orm/src/test/java/org/springframework/orm/jpa
spring-webflux/src/test/java/org/springframework/web/reactive/result/view/script
spring-webmvc/src/test/java/org/springframework/web/servlet/view/script Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2022 the original author or authors.
2+ * Copyright 2002-2023 the original author or authors.
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.
2323import jakarta .persistence .Query ;
2424import jakarta .persistence .TransactionRequiredException ;
2525import org .junit .jupiter .api .Test ;
26- import org .junit .jupiter .api .condition .DisabledOnJre ;
26+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
2727
2828import org .springframework .orm .jpa .domain .Person ;
2929
3939 * @author Juergen Hoeller
4040 * @since 2.0
4141 */
42- @ DisabledOnJre ( JAVA_18 )
42+ @ DisabledForJreRange ( min = JAVA_18 , disabledReason = "These JPA tests don't pass on Java 18+" )
4343public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
4444
4545 @ Test
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2022 the original author or authors.
2+ * Copyright 2002-2023 the original author or authors.
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.
2424import jakarta .persistence .Query ;
2525import jakarta .persistence .TransactionRequiredException ;
2626import org .junit .jupiter .api .Test ;
27- import org .junit .jupiter .api .condition .DisabledOnJre ;
27+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
2828
2929import org .springframework .beans .factory .annotation .Autowired ;
3030import org .springframework .dao .DataAccessException ;
4343 * @author Juergen Hoeller
4444 * @since 2.0
4545 */
46- @ DisabledOnJre ( JAVA_18 )
46+ @ DisabledForJreRange ( min = JAVA_18 , disabledReason = "These JPA tests don't pass on Java 18+" )
4747public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
4848
4949 @ Autowired
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2022 the original author or authors.
2+ * Copyright 2002-2023 the original author or authors.
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.
1818
1919import org .eclipse .persistence .jpa .JpaEntityManager ;
2020import org .junit .jupiter .api .Test ;
21- import org .junit .jupiter .api .condition .DisabledOnJre ;
21+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
2222
2323import org .springframework .orm .jpa .AbstractContainerEntityManagerFactoryIntegrationTests ;
2424import org .springframework .orm .jpa .EntityManagerFactoryInfo ;
3131 *
3232 * @author Juergen Hoeller
3333 */
34- @ DisabledOnJre ( JAVA_18 )
34+ @ DisabledForJreRange ( min = JAVA_18 , disabledReason = "These JPA tests don't pass on Java 18+" )
3535public class EclipseLinkEntityManagerFactoryIntegrationTests extends AbstractContainerEntityManagerFactoryIntegrationTests {
3636
3737 @ Test
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2022 the original author or authors.
2+ * Copyright 2002-2023 the original author or authors.
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.
2121import java .util .Map ;
2222
2323import 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
2726import org .springframework .context .annotation .AnnotationConfigApplicationContext ;
2827import org .springframework .context .annotation .Bean ;
3433import org .springframework .web .testfixture .server .MockServerWebExchange ;
3534
3635import static org .assertj .core .api .Assertions .assertThat ;
36+ import static org .junit .jupiter .api .condition .JRE .JAVA_19 ;
3737
3838/**
3939 * Unit tests for Kotlin script templates running on Kotlin JSR-223 support.
4040 *
4141 * @author Sebastien Deleuze
4242 */
43- @ DisabledOnJre ( value = JRE . JAVA_19 , disabledReason = "Kotlin doesn't support Java 19 yet" )
43+ @ DisabledForJreRange ( min = JAVA_19 , disabledReason = "Kotlin doesn't support Java 19+ yet" )
4444public class KotlinScriptTemplateTests {
4545
4646 @ Test
Original file line number Diff line number Diff line change 2323import jakarta .servlet .ServletContext ;
2424import org .junit .jupiter .api .BeforeEach ;
2525import org .junit .jupiter .api .Test ;
26- import org .junit .jupiter .api .condition .DisabledOnJre ;
27- import org .junit .jupiter .api .condition .JRE ;
26+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
2827
2928import org .springframework .context .annotation .AnnotationConfigApplicationContext ;
3029import org .springframework .context .annotation .Bean ;
3635import org .springframework .web .testfixture .servlet .MockServletContext ;
3736
3837import static org .assertj .core .api .Assertions .assertThat ;
38+ import static org .junit .jupiter .api .condition .JRE .JAVA_19 ;
3939import static org .mockito .Mockito .mock ;
4040
4141/**
4444 * @author Sebastien Deleuze
4545 * @author Sam Brannen
4646 */
47- @ DisabledOnJre ( value = JRE . JAVA_19 , disabledReason = "Kotlin doesn't support Java 19 yet" )
47+ @ DisabledForJreRange ( min = JAVA_19 , disabledReason = "Kotlin doesn't support Java 19+ yet" )
4848class KotlinScriptTemplateTests {
4949
5050 private WebApplicationContext webAppContext = mock ();
You can’t perform that action at this time.
0 commit comments