Package akka.actor.testkit.typed.javadsl
Interface ReplyInbox<T>
-
public interface ReplyInbox<T>
Similar to anTestInbox
, but can only ever give access to a single message (a reply).Not intended for user creation: the
BehaviorTestKit
will provide these to denote that at most a single reply is expected.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReplyInbox<T>
expectNoReply()
void
expectReply(T expectedReply)
Assert and remove the message.boolean
hasReply()
T
receiveReply()
Get and remove the reply.
-
-
-
Method Detail
-
expectNoReply
ReplyInbox<T> expectNoReply()
-
expectReply
void expectReply(T expectedReply)
Assert and remove the message. Subsequent calls toreceiveReply
,expectReply
, andexpectNoReply
will fail andhasReplies
will be false after calling this method
-
hasReply
boolean hasReply()
-
receiveReply
T receiveReply()
Get and remove the reply. Subsequent calls toreceiveReply
,expectReply
, andexpectNoReply
will fail andhasReplies
will be false after calling this method
-
-