Package akka.javasdk.testkit
package akka.javasdk.testkit
-
ClassDescriptionEverything the runtime traced under the agent commands of one session, read through
TelemetryReader.getAgentTrace(String).Represents the result of a Consumer handling a message when run through the testkit.ConsumerTestKit<C extends akka.javasdk.consumer.Consumer>Consumer Testkit for use in unit tests for Consumers.DeferredCallDetails<I,O> Represents the result of an Evaluator handling an evaluation when run through the testkit.EvaluatorTestKit<E extends akka.javasdk.evaluation.Evaluator>Evaluator Testkit for use in unit tests for Evaluators.Allows to simulate publishing messages for the purposes of testing incoming message flow.Allows to assert published messages for the purposes of testing outgoing message flow.Represents the result of an EventSourcedEntity handling a command when run in through the testkit.EventSourcedTestKit<S,E, ES extends akka.javasdk.eventsourcedentity.EventSourcedEntity<S, E>> EventSourced Testkit for use in unit tests for EventSourced entities.One guardrail evaluation during a turn.Represents the result of a KeyValueEntity handling a command when run in through the testkit.KeyValueEntityTestKit<S,E extends akka.javasdk.keyvalueentity.KeyValueEntity<S>> KeyValueEntity Testkit for use in unit tests for Value entities.Registry of mocked gRPC services for a runningTestKit.Registry of mocked HTTP services for a runningTestKit.This trait is meant to allow for unit testing when a service has cross-component or cross-service calls.One model call made while answering a turn.Configuration for a named object-storage bucket used in integration tests / dev mode.Credentials for a GCS-backed bucket.GCS service-account key file credentials.GCP Application Default Credentials (workload identity / ADC).Not part of the public API.How the bucket is addressed at the endpoint.Credentials for an S3-backed bucket.AWS named-profile credentials (reads from~/.aws/credentials).Static AWS credentials (access key + secret).AWS workload-identity / instance-profile credentials.Helper class for serializing and deserializing objects for testing schema migration.Reads the spans the runtime exports to the in-memory span exporter of a running TestKit.Testkit for running services locally.Settings for testkit.This class provided the necessary infrastructure to run integration test for projects built with the Java SDK.An in-memoryLedgerClientfor unit tests.AModelProviderimplementation for testing purposes that does not use a real AI model.Represents an AI response, which can include a message and/or list of tool invocation requests.Factory methods forTestModelProvider.ToolInvocationRequestinstances that correspond to the internal tools exposed by the autonomous agent runtime to the LLM.Participant reference for scripted conversations, with type and reference name.A step in a scripted conversation, specifying speaker and guidance.Specifies a team member type and count for acreate_teamtool invocation.Represents an input message.Represents a tool invocation request with a name and arguments.Represents a tool result.Represents a user message.Base class for building reply configurations for specific input predicates.Specialized reply builder for handling tool result messages.Test implementation ofNotificationPublisherthat collects all published notifications for later assertions.Represents the result of an Action handling a command when run in through the testkit.TimedActionTestkit<A extends akka.javasdk.timedaction.TimedAction>TimedAction Testkit for use in unit tests for TimedActions.One tool call: the name, the deserialized arguments and, when recorded, the result or the error.