Package akka.javasdk.testkit
Interface EventingTestKit.Message<P>
- Enclosing interface:
EventingTestKit
public static interface EventingTestKit.Message<P>
-
Method Summary
Modifier and TypeMethodDescription<T> T
expectType
(Class<T> clazz) Expects message payload to conform to type passed in and returns the typed object if so.akka.javasdk.Metadata
-
Method Details
-
getPayload
P getPayload() -
getMetadata
akka.javasdk.Metadata getMetadata() -
expectType
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
-