GH-192: KafkaEmbedded Lifecycle Methods to Public
Resolves https://github.com/spring-projects/spring-kafka/issues/192
This commit is contained in:
committed by
Artem Bilan
parent
076a352104
commit
a148e4af31
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user