In Juint5 is this possible to add @EmbeddedKafka without spring-boot? Basically, we wanted to use EmbeddedKafka with spring-core in Juint5.
In the below example, RawKafka is able to start in Junit4.
Is any chance we can do the same thing in Junit5 without SpringBootTest ???
Or any other option to create in-memory Kafka in Juint5?
Yes.
@EmbeddedKafkacan be used with normal spring test and even a plain junit5 test.For example, in case of spring test (i.e not
@SpringBootTest) you can do :In case of pure junit5 test , you can do :