Annotation Interface ZeebeIntegration.TestZeebe
- Enclosing class:
ZeebeIntegration
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIf true (the default), will automatically start the annotated instance before tests.booleanIf true (the default), will block and wait until the topology is complete, usingclusterSize(),partitionCount(), andreplicationFactor()as parameters.booleanIf true (the default), will block and wait until all managed applications are ready.booleanIf true (the default), will block and wait until all managed applications are started.intThe expected number of brokers in the cluster, used forawaitCompleteTopology().intThe expected partition count, used forawaitCompleteTopology().intThe expected replication factor, used forawaitCompleteTopology().longThe expected topology timeout, used forawaitCompleteTopology(); if omitted, defaults to 1 minute per brokers in the cluster.
-
Element Details
-
autoStart
boolean autoStartIf true (the default), will automatically start the annotated instance before tests.- Default:
true
-
awaitReady
boolean awaitReadyIf true (the default), will block and wait until all managed applications are ready.Does nothing if
autoStart()is false.- Default:
true
-
awaitStarted
boolean awaitStartedIf true (the default), will block and wait until all managed applications are started.Does nothing if
autoStart()is false.- Default:
true
-
awaitCompleteTopology
boolean awaitCompleteTopologyIf true (the default), will block and wait until the topology is complete, usingclusterSize(),partitionCount(), andreplicationFactor()as parameters.If a
TestClusterinstance is annotated with this, verifies this on all gateways. If the cluster size, partition count, and replication factor attributes are left to defaults (0), uses the cluster's information to replace them. However, if they're set to something, this will override the cluster's settings.If a
TestGatewayinstance is annotated with this, then only this gateway is used to await the complete topology. In this case, the default for the annotation params (clusterSize(),partitionCount(),replicationFactor()) are all 1.Does nothing if a
TestStandaloneBrokeris annotated with this that does not have an embedded gateway.Does nothing if
autoStart()is false.- Default:
true
-
clusterSize
int clusterSizeThe expected number of brokers in the cluster, used forawaitCompleteTopology().- Default:
0
-
partitionCount
int partitionCountThe expected partition count, used forawaitCompleteTopology().- Default:
0
-
replicationFactor
int replicationFactorThe expected replication factor, used forawaitCompleteTopology().- Default:
0
-
topologyTimeoutMs
long topologyTimeoutMsThe expected topology timeout, used forawaitCompleteTopology(); if omitted, defaults to 1 minute per brokers in the cluster.- Default:
0L
-