Class SharedZookeeperTestResource

java.lang.Object
com.salesforce.kafka.test.AbstractZookeeperTestResource
com.salesforce.kafka.test.junit4.SharedZookeeperTestResource
All Implemented Interfaces:
org.junit.rules.TestRule

public class SharedZookeeperTestResource extends AbstractZookeeperTestResource implements org.junit.rules.TestRule
Creates and stands up an internal test Zookeeper server to be shared across test cases within the same test class. Example within your Test class. @ClassRule public static final SharedZookeeperTestResource sharedZookeeperTestResource = new sharedZookeeperTestResource(); Within your test case method: sharedZookeeperTestResource.getZookeeperTestServer()...
  • Constructor Details

    • SharedZookeeperTestResource

      public SharedZookeeperTestResource()
  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule