Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate kafkaunit with spring #14

Open
ashishsoni opened this issue Nov 18, 2015 · 2 comments
Open

How to integrate kafkaunit with spring #14

ashishsoni opened this issue Nov 18, 2015 · 2 comments

Comments

@ashishsoni
Copy link

No description provided.

@jacobbeasley
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants