Package kalix.javasdk.testkit
Class KalixTestKit.Settings
Object
kalix.javasdk.testkit.KalixTestKit.Settings
- Enclosing class:
KalixTestKit
Settings for KalixTestkit.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
Whether ACL checking is enabled.final boolean
Whether advanced View features are enabled.static KalixTestKit.Settings
Default settings for KalixTestkit.static Duration
Default stop timeout (10 seconds).final String
The name of this service when deployed.Service port mappings from serviceName to host:portfinal Duration
Timeout setting for stopping the local Kalix test instance.To override workflow tick interval for integration tests -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
Disable ACL checking in this service.Enable ACL checking in this service.Enable advanced View features for this service.withEventingSupport
(KalixTestKit.Settings.EventingSupport eventingSupport) Mock the incoming events flow from an EventSourcedEntity.withServiceName
(String serviceName) Set the name of this service.withServicePortMapping
(String serviceName, String host, int port) Add a service port mapping from serviceName to host:port.withStopTimeout
(Duration stopTimeout) Set a custom stop timeout, for stopping the local Kalix test instance.withStreamIncomingMessages
(String service, String streamId) Mock the incoming messages flow from a Stream (eventing.in.direct in case of protobuf SDKs).withTopicIncomingMessages
(String topic) Mock the incoming events flow from a Topic.withTopicOutgoingMessages
(String topic) Mock the outgoing events flow for a Topic.Mock the incoming messages flow from a ValueEntity.withWorkflowTickInterval
(Duration tickInterval) Overrides workflow tick interval
-
Field Details
-
DEFAULT_STOP_TIMEOUT
Default stop timeout (10 seconds). -
DEFAULT
Default settings for KalixTestkit. -
stopTimeout
Timeout setting for stopping the local Kalix test instance. -
serviceName
The name of this service when deployed. -
aclEnabled
public final boolean aclEnabledWhether ACL checking is enabled. -
advancedViews
public final boolean advancedViewsWhether advanced View features are enabled. -
workflowTickInterval
To override workflow tick interval for integration tests -
servicePortMappings
Service port mappings from serviceName to host:port -
eventingSupport
-
mockedEventing
-
-
Constructor Details
-
Settings
Deprecated.Use Settings.DEFAULT.withStopTimeout() instead.Create new settings for KalixTestkit.- Parameters:
stopTimeout
- timeout to use when waiting for Kalix to stop
-
-
Method Details
-
withStopTimeout
Set a custom stop timeout, for stopping the local Kalix test instance.- Parameters:
stopTimeout
- timeout to use when waiting for Kalix to stop- Returns:
- updated Settings
-
withServiceName
Set the name of this service. This will be used by the service when making calls on other services run by the testkit to authenticate itself, allowing those services to apply ACLs based on that name.- Parameters:
serviceName
- The name of this service.- Returns:
- The updated settings.
-
withAclDisabled
Disable ACL checking in this service.- Returns:
- The updated settings.
-
withAclEnabled
Enable ACL checking in this service.- Returns:
- The updated settings.
-
withAdvancedViews
Enable advanced View features for this service.- Returns:
- The updated settings.
-
withWorkflowTickInterval
Overrides workflow tick interval- Returns:
- The updated settings.
-
withValueEntityIncomingMessages
Mock the incoming messages flow from a ValueEntity. -
withEventSourcedEntityIncomingMessages
Mock the incoming events flow from an EventSourcedEntity. -
withStreamIncomingMessages
Mock the incoming messages flow from a Stream (eventing.in.direct in case of protobuf SDKs). -
withTopicIncomingMessages
Mock the incoming events flow from a Topic. -
withTopicOutgoingMessages
Mock the outgoing events flow for a Topic. -
withServicePortMapping
Add a service port mapping from serviceName to host:port.- Returns:
- The updated settings.
-
withEventingSupport
public KalixTestKit.Settings withEventingSupport(KalixTestKit.Settings.EventingSupport eventingSupport) -
toString
-