public class KafkaJunitRule
extends org.junit.rules.ExternalResource
Constructor and Description |
---|
KafkaJunitRule(EphemeralKafkaBroker broker) |
KafkaJunitRule(EphemeralKafkaBroker broker,
com.github.charithe.kafka.KafkaJunitRule.StartupMode mode) |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
static KafkaJunitRule |
create() |
KafkaJunitRule |
dontWaitForStartup() |
KafkaHelper |
helper()
Obtain a
KafkaHelper that provides a bunch of convenience methods |
KafkaJunitRule |
waitForStartup() |
public KafkaJunitRule(EphemeralKafkaBroker broker)
public KafkaJunitRule(EphemeralKafkaBroker broker, com.github.charithe.kafka.KafkaJunitRule.StartupMode mode)
protected void before() throws Throwable
before
in class org.junit.rules.ExternalResource
Throwable
protected void after()
after
in class org.junit.rules.ExternalResource
public KafkaHelper helper()
KafkaHelper
that provides a bunch of convenience methodspublic KafkaJunitRule waitForStartup()
KafkaJunitRule
that will wait for the broker to finish starting before
executing tests.public KafkaJunitRule dontWaitForStartup()
KafkaJunitRule
that will NOT wait for the broker to finish starting before
executing testspublic static KafkaJunitRule create()
Copyright © 2017. All rights reserved.