Skip to content

Commit fab1cf6

Browse files
committed
Merge branch '3.4.x'
Closes gh-44844
2 parents be60863 + ba3de2b commit fab1cf6

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ void jCacheCacheWithUnknownProvider() {
431431
@Test
432432
void jCacheCacheWithConfig() {
433433
String cachingProviderFqn = MockCachingProvider.class.getName();
434-
String configLocation = "org/springframework/boot/autoconfigure/hazelcast/hazelcast-specific.xml";
434+
String configLocation = "org/springframework/boot/autoconfigure/cache/hazelcast-specific.xml";
435435
this.contextRunner.withUserConfiguration(JCacheCustomConfiguration.class)
436436
.withPropertyValues("spring.cache.type=jcache", "spring.cache.jcache.provider=" + cachingProviderFqn,
437437
"spring.cache.jcache.config=" + configLocation)
@@ -519,7 +519,7 @@ void hazelcastCacheWithExistingHazelcastInstance() {
519519

520520
@Test
521521
void hazelcastCacheWithHazelcastAutoConfiguration() {
522-
String hazelcastConfig = "org/springframework/boot/autoconfigure/hazelcast/hazelcast-specific.xml";
522+
String hazelcastConfig = "org/springframework/boot/autoconfigure/cache/hazelcast-specific.xml";
523523
this.contextRunner.withConfiguration(AutoConfigurations.of(HazelcastAutoConfiguration.class))
524524
.withUserConfiguration(DefaultCacheConfiguration.class)
525525
.withPropertyValues("spring.cache.type=hazelcast", "spring.hazelcast.config=" + hazelcastConfig)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-5.0.xsd"
2+
xmlns="http://www.hazelcast.com/schema/config"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
5+
<queue name="foobar"/>
6+
7+
<map name="foobar">
8+
<time-to-live-seconds>3600</time-to-live-seconds>
9+
<max-idle-seconds>600</max-idle-seconds>
10+
</map>
11+
12+
<network>
13+
<join>
14+
<auto-detection enabled="false" />
15+
<multicast enabled="false"/>
16+
</join>
17+
</network>
18+
19+
</hazelcast>

0 commit comments

Comments
 (0)