Interface ReplyInbox<T>
public interface ReplyInbox<T>
Similar to an
akka.actor.testkit.typed.javadsl.TestInbox, but can only ever give access to a single message (a reply).
Not intended for user creation: the akka.actor.testkit.typed.javadsl.BehaviorTestKit will provide these to
denote that at most a single reply is expected.
- Since:
- 1.3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidexpectReply(T expectedReply) Assert and remove the message.booleanhasReply()Get and remove the reply.
-
Method Details
-
expectNoReply
ReplyInbox<T> expectNoReply() -
expectReply
Assert and remove the message. Subsequent calls toreceiveReply,expectReply, andexpectNoReplywill fail andhasReplieswill be false after calling this method -
hasReply
boolean hasReply() -
receiveReply
T receiveReply()Get and remove the reply. Subsequent calls toreceiveReply,expectReply, andexpectNoReplywill fail andhasReplieswill be false after calling this method
-