kafka-unit icon indicating copy to clipboard operation
kafka-unit copied to clipboard

How to integrate kafkaunit with spring

Open ashishsoni opened this issue 10 years ago • 2 comments

ashishsoni avatar Nov 18 '15 21:11 ashishsoni

It works for me as-is. I just add it as a rule as part of Spring Boot integration test (@WebIntegrationTest) and it works.

jacobbeasley avatar Sep 12 '16 16:09 jacobbeasley

@RunWith(SpringJUnit4ClassRunner.class) @WebIntegrationTest public class SomeTest { @Rule public KafkaUnitRule kafkaUnitRule = new KafkaUnitRule(2181, 9092); }

jacobbeasley avatar Sep 12 '16 16:09 jacobbeasley