Package io.etcd.jetcd.test
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter(org.junit.jupiter.api.extension.ExtensionContext context) voidafterAll(org.junit.jupiter.api.extension.ExtensionContext context) voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) protected voidbefore(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context) static EtcdClusterExtension.Builderbuilder()io.etcd.jetcd.launcher.EtcdClustercluster()static io.etcd.jetcd.launcher.EtcdClustervoid
-
Method Details
-
cluster
public io.etcd.jetcd.launcher.EtcdCluster cluster() -
restart
-
clusterName
-
clientEndpoints
-
peerEndpoints
-
beforeAll
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
Exception
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
afterAll
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceorg.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
-
builder
-