public static class TestWorkflowRule.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
TestWorkflowRule |
build() |
TestWorkflowRule.Builder |
setActivityImplementations(java.lang.Object... activityImplementations) |
TestWorkflowRule.Builder |
setDoNotStart(boolean doNotStart)
When set to true the
TestWorkflowEnvironment.start() is not called by the rule before
executing the test. |
TestWorkflowRule.Builder |
setNamespace(java.lang.String namespace) |
TestWorkflowRule.Builder |
setTarget(java.lang.String target)
Optional parameter that defines an endpoint which will be used for the communication with
standalone temporal service.
|
TestWorkflowRule.Builder |
setTestTimeoutSeconds(long testTimeoutSeconds)
Global test timeout.
|
TestWorkflowRule.Builder |
setUseExternalService(boolean useExternalService)
Switches between in-memory and external temporal service implementations.
|
TestWorkflowRule.Builder |
setWorkerOptions(io.temporal.worker.WorkerOptions options) |
TestWorkflowRule.Builder |
setWorkflowTypes(java.lang.Class<?>... workflowTypes) |
public TestWorkflowRule.Builder setWorkerOptions(io.temporal.worker.WorkerOptions options)
public TestWorkflowRule.Builder setNamespace(java.lang.String namespace)
public TestWorkflowRule.Builder setWorkflowTypes(java.lang.Class<?>... workflowTypes)
public TestWorkflowRule.Builder setActivityImplementations(java.lang.Object... activityImplementations)
public TestWorkflowRule.Builder setUseExternalService(boolean useExternalService)
useExternalService
- use external service if true.
Default is false.
public TestWorkflowRule.Builder setTarget(java.lang.String target)
setUseExternalService(boolean)
is set
to false.
Default is to use 127.0.0.1:7233
public TestWorkflowRule.Builder setTestTimeoutSeconds(long testTimeoutSeconds)
public TestWorkflowRule.Builder setDoNotStart(boolean doNotStart)
TestWorkflowEnvironment.start()
is not called by the rule before
executing the test. This to support tests that register activities and workflows with workers
directly instead of using only TestWorkflowRule.Builder
.public TestWorkflowRule build()