Class RaftClusterInvocationContext
java.lang.Object
org.apache.kafka.common.test.junit.RaftClusterInvocationContext
- All Implemented Interfaces:
org.junit.jupiter.api.extension.TestTemplateInvocationContext
public class RaftClusterInvocationContext
extends Object
implements org.junit.jupiter.api.extension.TestTemplateInvocationContext
Wraps a
KafkaClusterTestKit inside lifecycle methods for a test invocation. Each instance of this
class is provided with a configuration for the cluster.
This context also provides parameter resolvers for:
- ClusterConfig (the same instance passed to the constructor)
- ClusterInstance (includes methods to expose underlying SocketServer-s)
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRaftClusterInvocationContext(String baseDisplayName, org.apache.kafka.common.test.api.ClusterConfig clusterConfig, boolean isCombined) -
Method Summary
Modifier and TypeMethodDescriptionList<org.junit.jupiter.api.extension.Extension> getDisplayName(int invocationIndex)
-
Constructor Details
-
RaftClusterInvocationContext
public RaftClusterInvocationContext(String baseDisplayName, org.apache.kafka.common.test.api.ClusterConfig clusterConfig, boolean isCombined)
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceorg.junit.jupiter.api.extension.TestTemplateInvocationContext
-
getAdditionalExtensions
- Specified by:
getAdditionalExtensionsin interfaceorg.junit.jupiter.api.extension.TestTemplateInvocationContext
-