File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed
spring-integration-kafka/src
main/java/org/springframework/integration/kafka
java/org/springframework/integration/kafka/dsl
kotlin/org/springframework/integration/kafka/dsl/kotlin Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1818
1919import java .util .stream .Stream ;
2020
21+ import org .jspecify .annotations .Nullable ;
22+
2123import org .springframework .aot .hint .ExecutableMode ;
2224import org .springframework .aot .hint .ReflectionHints ;
2325import org .springframework .aot .hint .RuntimeHints ;
3739class KafkaRuntimeHints implements RuntimeHintsRegistrar {
3840
3941 @ Override
40- public void registerHints (RuntimeHints hints , ClassLoader classLoader ) {
42+ public void registerHints (RuntimeHints hints , @ Nullable ClassLoader classLoader ) {
4143 ReflectionHints reflectionHints = hints .reflection ();
4244
4345 // Java DSL does not register beans during AOT phase, so @Reflective is not reachable from Pausable
Original file line number Diff line number Diff line change 1+ /**
2+ * AOT support classes for Apache Kafka Module.
3+ */
4+ @ org .jspecify .annotations .NullMarked
5+ package org .springframework .integration .kafka .aot ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7171import org .springframework .kafka .support .Acknowledgment ;
7272import org .springframework .kafka .support .DefaultKafkaHeaderMapper ;
7373import org .springframework .kafka .support .KafkaHeaders ;
74+ import org .springframework .kafka .test .context .EmbeddedKafka ;
7475import org .springframework .kafka .test .utils .KafkaTestUtils ;
7576import org .springframework .messaging .Message ;
7677import org .springframework .messaging .MessageChannel ;
9798 */
9899@ SpringJUnitConfig
99100@ DirtiesContext
101+ @ EmbeddedKafka
100102public class KafkaDslTests {
101103
102104 private static final Log log = LogFactory .getLog (KafkaDslTests .class );
@@ -275,7 +277,7 @@ public static class ContextConfiguration {
275277
276278 private Object fromSource ;
277279
278- @ Value ("${spring.global.embedded. kafka.brokers }" )
280+ @ Value ("${spring.kafka.bootstrap-servers }" )
279281 String embeddedKafkaBrokers ;
280282
281283 @ Bean
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ import org.springframework.kafka.requestreply.ReplyingKafkaTemplate
4747import org.springframework.kafka.support.Acknowledgment
4848import org.springframework.kafka.support.DefaultKafkaHeaderMapper
4949import org.springframework.kafka.support.KafkaHeaders
50+ import org.springframework.kafka.test.context.EmbeddedKafka
5051import org.springframework.kafka.test.utils.KafkaTestUtils
5152import org.springframework.messaging.Message
5253import org.springframework.messaging.MessageChannel
@@ -71,6 +72,7 @@ import java.util.stream.Stream
7172
7273@SpringJUnitConfig
7374@DirtiesContext
75+ @EmbeddedKafka
7476class KafkaDslKotlinTests {
7577
7678 companion object {
@@ -205,7 +207,7 @@ class KafkaDslKotlinTests {
205207
206208 var fromSource: Any? = null
207209
208- @Value(" \$ {spring.global.embedded. kafka.brokers }" )
210+ @Value(" \$ {spring.kafka.bootstrap-servers }" )
209211 lateinit var embeddedKafkaBrokers: String
210212
211213 @Bean
You can’t perform that action at this time.
0 commit comments