Interface EventingTestKit.Message<P>

Enclosing interface:
EventingTestKit

@ApiMayChange public static interface EventingTestKit.Message<P>
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    expectType(Class<T> clazz)
    Expects message payload to conform to type passed in and returns the typed object if so.
    kalix.javasdk.Metadata
     
     
  • Method Details

    • getPayload

      P getPayload()
    • getMetadata

      kalix.javasdk.Metadata getMetadata()
    • expectType

      <T> T expectType(Class<T> clazz)
      Expects message payload to conform to type passed in and returns the typed object if so. Otherwise, throws an exception.
      Type Parameters:
      T - the type of the payload
      Parameters:
      clazz - expected class type for the payload of the message
      Returns:
      a typed object from the payload