Package com.salesforce.kafka.test.junit5
Class SharedZookeeperTestResource
java.lang.Object
com.salesforce.kafka.test.AbstractZookeeperTestResource
com.salesforce.kafka.test.junit5.SharedZookeeperTestResource
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension
public class SharedZookeeperTestResource
extends AbstractZookeeperTestResource
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
Shared Zookeeper Test Resource instance. Contains references to internal Zookeeper server instances.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.salesforce.kafka.test.AbstractZookeeperTestResource
getZookeeperConnectString, getZookeeperTestServer
-
Constructor Details
-
SharedZookeeperTestResource
public SharedZookeeperTestResource()
-
-
Method Details
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws RuntimeExceptionHere we stand up an internal test zookeeper service. once for all tests that use this shared resource.- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
RuntimeException- on startup errors.
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)Here we shut down the internal test zookeeper service.- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
RuntimeException- on shutdown errors.
-