Annotation Interface ZeebeIntegration.TestZeebe

Enclosing class:
ZeebeIntegration

@Target(FIELD) @Retention(RUNTIME) @Documented @Inherited public static @interface ZeebeIntegration.TestZeebe
  • Element Details

    • autoStart

      boolean autoStart
      If true (the default), will automatically start the annotated instance before tests.
      Default:
      true
    • awaitReady

      boolean awaitReady
      If true (the default), will block and wait until all managed applications are ready.

      Does nothing if autoStart() is false.

      Default:
      true
    • awaitStarted

      boolean awaitStarted
      If true (the default), will block and wait until all managed applications are started.

      Does nothing if autoStart() is false.

      Default:
      true
    • awaitCompleteTopology

      boolean awaitCompleteTopology
      If true (the default), will block and wait until the topology is complete, using clusterSize(), partitionCount(), and replicationFactor() as parameters.

      If a TestCluster instance 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 TestGateway instance 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 TestStandaloneBroker is annotated with this that does not have an embedded gateway.

      Does nothing if autoStart() is false.

      Default:
      true
    • clusterSize

      int clusterSize
      The expected number of brokers in the cluster, used for awaitCompleteTopology().
      Default:
      0
    • partitionCount

      int partitionCount
      The expected partition count, used for awaitCompleteTopology().
      Default:
      0
    • replicationFactor

      int replicationFactor
      The expected replication factor, used for awaitCompleteTopology().
      Default:
      0
    • topologyTimeoutMs

      long topologyTimeoutMs
      The expected topology timeout, used for awaitCompleteTopology(); if omitted, defaults to 1 minute per brokers in the cluster.
      Default:
      0L