GH-192: KafkaEmbedded Lifecycle Methods to Public

Resolves https://github.com/spring-projects/spring-kafka/issues/192
This commit is contained in:
Gary Russell
2016-10-12 15:55:25 -04:00
committed by Artem Bilan
parent 076a352104
commit a148e4af31

View File

@@ -129,7 +129,7 @@ public class KafkaEmbedded extends ExternalResource implements KafkaRule {
}
@Override
protected void before() throws Exception { //NOSONAR
public void before() throws Exception { //NOSONAR
startZookeeper();
int zkConnectionTimeout = 6000;
int zkSessionTimeout = 6000;
@@ -163,7 +163,7 @@ public class KafkaEmbedded extends ExternalResource implements KafkaRule {
}
@Override
protected void after() {
public void after() {
System.getProperties().remove(SPRING_EMBEDDED_KAFKA_BROKERS);
for (KafkaServer kafkaServer : this.kafkaServers) {
try {