Class 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 java.lang.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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after​(org.junit.jupiter.api.extension.ExtensionContext context)  
      void afterAll​(org.junit.jupiter.api.extension.ExtensionContext context)  
      void afterEach​(org.junit.jupiter.api.extension.ExtensionContext context)  
      protected void before​(org.junit.jupiter.api.extension.ExtensionContext context)  
      void beforeAll​(org.junit.jupiter.api.extension.ExtensionContext context)  
      void beforeEach​(org.junit.jupiter.api.extension.ExtensionContext context)  
      static EtcdClusterExtension.Builder builder()  
      java.util.List<java.net.URI> clientEndpoints()  
      io.etcd.jetcd.launcher.EtcdCluster cluster()  
      static io.etcd.jetcd.launcher.EtcdCluster cluster​(java.lang.String clusterName)  
      java.lang.String clusterName()  
      java.util.List<java.net.URI> peerEndpoints()  
      void restart()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • cluster

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

        public void restart()
      • clusterName

        public java.lang.String clusterName()
      • clientEndpoints

        public java.util.List<java.net.URI> clientEndpoints()
      • peerEndpoints

        public java.util.List<java.net.URI> peerEndpoints()
      • beforeAll

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

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

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

        public void afterEach​(org.junit.jupiter.api.extension.ExtensionContext context)
                       throws java.lang.Exception
        Specified by:
        afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
        Throws:
        java.lang.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​(java.lang.String clusterName)