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
5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
23
23
import jakarta .persistence .Query ;
24
24
import jakarta .persistence .TransactionRequiredException ;
25
25
import org .junit .jupiter .api .Test ;
26
- import org .junit .jupiter .api .condition .DisabledOnJre ;
26
+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
27
27
28
28
import org .springframework .orm .jpa .domain .Person ;
29
29
39
39
* @author Juergen Hoeller
40
40
* @since 2.0
41
41
*/
42
- @ DisabledOnJre ( JAVA_18 )
42
+ @ DisabledForJreRange ( min = JAVA_18 , disabledReason = "These JPA tests don't pass on Java 18+" )
43
43
public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
44
44
45
45
@ Test
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
import jakarta .persistence .Query ;
25
25
import jakarta .persistence .TransactionRequiredException ;
26
26
import org .junit .jupiter .api .Test ;
27
- import org .junit .jupiter .api .condition .DisabledOnJre ;
27
+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
28
28
29
29
import org .springframework .beans .factory .annotation .Autowired ;
30
30
import org .springframework .dao .DataAccessException ;
43
43
* @author Juergen Hoeller
44
44
* @since 2.0
45
45
*/
46
- @ DisabledOnJre ( JAVA_18 )
46
+ @ DisabledForJreRange ( min = JAVA_18 , disabledReason = "These JPA tests don't pass on Java 18+" )
47
47
public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
48
48
49
49
@ Autowired
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
18
18
19
19
import org .eclipse .persistence .jpa .JpaEntityManager ;
20
20
import org .junit .jupiter .api .Test ;
21
- import org .junit .jupiter .api .condition .DisabledOnJre ;
21
+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
22
22
23
23
import org .springframework .orm .jpa .AbstractContainerEntityManagerFactoryIntegrationTests ;
24
24
import org .springframework .orm .jpa .EntityManagerFactoryInfo ;
31
31
*
32
32
* @author Juergen Hoeller
33
33
*/
34
- @ DisabledOnJre ( JAVA_18 )
34
+ @ DisabledForJreRange ( min = JAVA_18 , disabledReason = "These JPA tests don't pass on Java 18+" )
35
35
public class EclipseLinkEntityManagerFactoryIntegrationTests extends AbstractContainerEntityManagerFactoryIntegrationTests {
36
36
37
37
@ Test
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
21
21
import java .util .Map ;
22
22
23
23
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 ;
26
25
27
26
import org .springframework .context .annotation .AnnotationConfigApplicationContext ;
28
27
import org .springframework .context .annotation .Bean ;
34
33
import org .springframework .web .testfixture .server .MockServerWebExchange ;
35
34
36
35
import static org .assertj .core .api .Assertions .assertThat ;
36
+ import static org .junit .jupiter .api .condition .JRE .JAVA_19 ;
37
37
38
38
/**
39
39
* Unit tests for Kotlin script templates running on Kotlin JSR-223 support.
40
40
*
41
41
* @author Sebastien Deleuze
42
42
*/
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" )
44
44
public class KotlinScriptTemplateTests {
45
45
46
46
@ Test
Original file line number Diff line number Diff line change 23
23
import jakarta .servlet .ServletContext ;
24
24
import org .junit .jupiter .api .BeforeEach ;
25
25
import 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 ;
28
27
29
28
import org .springframework .context .annotation .AnnotationConfigApplicationContext ;
30
29
import org .springframework .context .annotation .Bean ;
36
35
import org .springframework .web .testfixture .servlet .MockServletContext ;
37
36
38
37
import static org .assertj .core .api .Assertions .assertThat ;
38
+ import static org .junit .jupiter .api .condition .JRE .JAVA_19 ;
39
39
import static org .mockito .Mockito .mock ;
40
40
41
41
/**
44
44
* @author Sebastien Deleuze
45
45
* @author Sam Brannen
46
46
*/
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" )
48
48
class KotlinScriptTemplateTests {
49
49
50
50
private WebApplicationContext webAppContext = mock ();
You can’t perform that action at this time.
0 commit comments