Class EtcdClusterExtension

java.lang.Object
io.etcd.jetcd.test.EtcdClusterExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

public class EtcdClusterExtension extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback
JUnit5 Extension to have etcd cluster in tests.
  • Method Details

    • cluster

      public io.etcd.jetcd.launcher.EtcdCluster cluster()
    • restart

      public void restart(long delay, TimeUnit unit)
    • clusterName

      public String clusterName()
    • clientEndpoints

      public List<URI> clientEndpoints()
    • peerEndpoints

      public List<URI> peerEndpoints()
    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
      Throws:
      Exception
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
      Throws:
      Exception
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
      Throws:
      Exception
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Throws:
      Exception
    • before

      protected void before(org.junit.jupiter.api.extension.ExtensionContext context)
    • after

      protected void after(org.junit.jupiter.api.extension.ExtensionContext context)
    • cluster

      public static io.etcd.jetcd.launcher.EtcdCluster cluster(String clusterName)
    • builder

      public static EtcdClusterExtension.Builder builder()