38
38
import org .infinispan .jcache .embedded .JCachingProvider ;
39
39
import org .infinispan .spring .embedded .provider .SpringEmbeddedCacheManager ;
40
40
import org .junit .jupiter .api .Test ;
41
- import org .junit .jupiter .api .condition .DisabledOnJre ;
41
+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
42
42
import org .junit .jupiter .api .condition .JRE ;
43
43
44
44
import org .springframework .beans .factory .BeanCreationException ;
@@ -569,7 +569,7 @@ void hazelcastAsJCacheWithExistingHazelcastInstance() {
569
569
}
570
570
571
571
@ Test
572
- @ DisabledOnJre ( value = JRE .OTHER , disabledReason = "Infinispan 14 does not work on Java 23" )
572
+ @ EnabledForJreRange ( min = JRE .JAVA_17 , max = JRE . JAVA_22 , disabledReason = "Infinispan 14 does not work on Java 23" )
573
573
void infinispanCacheWithConfig () {
574
574
this .contextRunner .withUserConfiguration (DefaultCacheConfiguration .class )
575
575
.withPropertyValues ("spring.cache.type=infinispan" , "spring.cache.infinispan.config=infinispan.xml" )
@@ -580,15 +580,15 @@ void infinispanCacheWithConfig() {
580
580
}
581
581
582
582
@ Test
583
- @ DisabledOnJre ( value = JRE .OTHER , disabledReason = "Infinispan 14 does not work on Java 23" )
583
+ @ EnabledForJreRange ( min = JRE .JAVA_17 , max = JRE . JAVA_22 , disabledReason = "Infinispan 14 does not work on Java 23" )
584
584
void infinispanCacheWithCustomizers () {
585
585
this .contextRunner .withUserConfiguration (DefaultCacheAndCustomizersConfiguration .class )
586
586
.withPropertyValues ("spring.cache.type=infinispan" )
587
587
.run (verifyCustomizers ("allCacheManagerCustomizer" , "infinispanCacheManagerCustomizer" ));
588
588
}
589
589
590
590
@ Test
591
- @ DisabledOnJre ( value = JRE .OTHER , disabledReason = "Infinispan 14 does not work on Java 23" )
591
+ @ EnabledForJreRange ( min = JRE .JAVA_17 , max = JRE . JAVA_22 , disabledReason = "Infinispan 14 does not work on Java 23" )
592
592
void infinispanCacheWithCaches () {
593
593
this .contextRunner .withUserConfiguration (DefaultCacheConfiguration .class )
594
594
.withPropertyValues ("spring.cache.type=infinispan" , "spring.cache.cacheNames[0]=foo" ,
@@ -598,7 +598,7 @@ void infinispanCacheWithCaches() {
598
598
}
599
599
600
600
@ Test
601
- @ DisabledOnJre ( value = JRE .OTHER , disabledReason = "Infinispan 14 does not work on Java 23" )
601
+ @ EnabledForJreRange ( min = JRE .JAVA_17 , max = JRE . JAVA_22 , disabledReason = "Infinispan 14 does not work on Java 23" )
602
602
void infinispanCacheWithCachesAndCustomConfig () {
603
603
this .contextRunner .withUserConfiguration (InfinispanCustomConfiguration .class )
604
604
.withPropertyValues ("spring.cache.type=infinispan" , "spring.cache.cacheNames[0]=foo" ,
@@ -611,7 +611,7 @@ void infinispanCacheWithCachesAndCustomConfig() {
611
611
}
612
612
613
613
@ Test
614
- @ DisabledOnJre ( value = JRE .OTHER , disabledReason = "Infinispan 14 does not work on Java 23" )
614
+ @ EnabledForJreRange ( min = JRE .JAVA_17 , max = JRE . JAVA_22 , disabledReason = "Infinispan 14 does not work on Java 23" )
615
615
void infinispanAsJCacheWithCaches () {
616
616
String cachingProviderClassName = JCachingProvider .class .getName ();
617
617
this .contextRunner .withUserConfiguration (DefaultCacheConfiguration .class )
@@ -622,7 +622,7 @@ void infinispanAsJCacheWithCaches() {
622
622
}
623
623
624
624
@ Test
625
- @ DisabledOnJre ( value = JRE .OTHER , disabledReason = "Infinispan 14 does not work on Java 23" )
625
+ @ EnabledForJreRange ( min = JRE .JAVA_17 , max = JRE . JAVA_22 , disabledReason = "Infinispan 14 does not work on Java 23" )
626
626
void infinispanAsJCacheWithConfig () {
627
627
String cachingProviderClassName = JCachingProvider .class .getName ();
628
628
String configLocation = "infinispan.xml" ;
0 commit comments