Skip to content

Commit b0056bc

Browse files
committed
GH-7646: Dotted Custom Property
Since kafka properties are generally dotted, add a test to ensure dotted "catch-all" properties work.
1 parent 1f85b4c commit b0056bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/kafka/KafkaAutoConfigurationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public void consumerProperties() {
6363
load("spring.kafka.bootstrap-servers=foo:1234",
6464
"spring.kafka.properties.foo=bar",
6565
"spring.kafka.properties.baz=qux",
66+
"spring.kafka.properties.foo.bar.baz=qux.fiz.buz",
6667
"spring.kafka.ssl.key-password=p1",
6768
"spring.kafka.ssl.keystore-location=classpath:ksLoc",
6869
"spring.kafka.ssl.keystore-password=p2",
@@ -116,6 +117,7 @@ public void consumerProperties() {
116117
.isEqualTo(42);
117118
assertThat(configs.get("foo")).isEqualTo("bar");
118119
assertThat(configs.get("baz")).isEqualTo("qux");
120+
assertThat(configs.get("foo.bar.baz")).isEqualTo("qux.fiz.buz");
119121
}
120122

121123
@Test

0 commit comments

Comments
 (0)