package testkit
- Alphabetic
- Public
- Protected
Type Members
- trait ActionResult[T] extends AnyRef
Represents the result of an Action handling a command when run in through the testkit.
Represents the result of an Action handling a command when run in through the testkit.
Not for user extension, returned by the generated testkit.
- trait DeferredCallDetails[I, O] extends DeferredCall[I, O]
- trait EventSourcedResult[R] extends AnyRef
Represents the result of an EventSourcedEntity handling a command when run in through the testkit.
Represents the result of an EventSourcedEntity handling a command when run in through the testkit.
Not for user extension, returned by the generated testkit.
- R
The type of reply that is expected from invoking command handler
- trait IncomingMessages extends AnyRef
Testkit utility to mock incoming message flow.
Testkit utility to mock incoming message flow. Useful when doing integration tests for services that do eventing.in.
- Annotations
- @ApiMayChange()
- class KalixTestKit extends AnyRef
- final case class Message[P](payload: P, metadata: Metadata) extends Product with Serializable
- Annotations
- @ApiMayChange()
- trait MockRegistry extends AnyRef
This trait is meant to allow for unit testing when a service has cross-component or cross-service calls.
This trait is meant to allow for unit testing when a service has cross-component or cross-service calls. The set of mocks or stubs will be matched by its class type upon a call of an external component or service.
- trait OutgoingMessages extends AnyRef
Allows to assert published messages for the purposes of testing outgoing message flow.
Allows to assert published messages for the purposes of testing outgoing message flow.
- Annotations
- @ApiMayChange()
- trait ValueEntityResult[R] extends AnyRef
Represents the result of an ValueEntity handling a command when run in through the testkit.
Represents the result of an ValueEntity handling a command when run in through the testkit.
Not for user extension, returned by the generated testkit.
- R
The type of reply that is expected from invoking command handler
Value Members
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object IncomingMessages
- Annotations
- @InternalApi()
- object KalixTestKit
TestKit for running Kalix services locally.
TestKit for running Kalix services locally.
Requires Docker for starting a local instance of the Kalix Runtime.
Create a KalixTestKit with an Kalix service descriptor, and then KalixTestKit.start()* the testkit before testing the service with gRPC or HTTP clients. Call KalixTestKit.stop after tests are complete.
- object MockRegistry
- object OutgoingMessages
- Annotations
- @InternalApi()