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 Details

    • SharedZookeeperTestResource

      public SharedZookeeperTestResource()
  • Method Details

    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws RuntimeException
      Here we stand up an internal test zookeeper service. once for all tests that use this shared resource.
      Specified by:
      beforeAll in interface org.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:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
      Throws:
      RuntimeException - on shutdown errors.