Skip to content

Commit

Permalink
spring-projectsGH-2927 Test that zk broker can be resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1ftry committed Dec 15, 2023
1 parent cf0245d commit d3e0a45
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.junit.jupiter.api.Test;

import org.springframework.kafka.test.EmbeddedKafkaBroker;
import org.springframework.kafka.test.EmbeddedKafkaZKBroker;
import org.springframework.kafka.test.context.EmbeddedKafka;
import org.springframework.kafka.test.utils.KafkaTestUtils;

Expand All @@ -41,4 +42,9 @@ public void test(EmbeddedKafkaBroker broker) {
assertThat(broker.getPartitionsPerTopic()).isEqualTo(3);
}

@Test
public void testResolver(EmbeddedKafkaZKBroker broker) {
assertThat(broker).isNotNull();
}

}

0 comments on commit d3e0a45

Please sign in to comment.