Packages

package testkit

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package impl

Type Members

  1. 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.

  2. trait DeferredCallDetails[I, O] extends DeferredCall[I, O]
  3. 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

  4. 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()
  5. class KalixTestKit extends AnyRef
  6. final case class Message[P](payload: P, metadata: Metadata) extends Product with Serializable
    Annotations
    @ApiMayChange()
  7. 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.

  8. 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()
  9. trait Topic extends AnyRef

    Testkit utility to mock broker's topic.

    Testkit utility to mock broker's topic. Useful when doing integration tests for services that do eventing (in or out) to a broker's topic.

    Note: messages written to the topic with this utility are not readable with the expect* methods, unless they have been properly forwarded through an eventing.out flow to the same topic.

    Annotations
    @ApiMayChange()
  10. 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

  1. case object BuildInfo extends Product with Serializable

    This object was generated by sbt-buildinfo.

  2. object IncomingMessages
    Annotations
    @InternalApi()
  3. 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.

  4. object MockRegistry
  5. object OutgoingMessages
    Annotations
    @InternalApi()
  6. object Topic
    Annotations
    @InternalApi()

Ungrouped