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
BehaviorTestKitwill 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()Assert that this inbox has *never* received a reply.voidexpectReply(T expectedReply)Assert and remove the reply.booleanhasReply()TreceiveReply()Get and remove the reply.
-
-
-
Method Detail
-
expectNoReply
ReplyInbox<T> expectNoReply()
Assert that this inbox has *never* received a reply.
-
expectReply
void expectReply(T expectedReply)
Assert and remove the reply. Subsequent calls toreceiveReply,expectReply, andexpectNoReplywill fail andhasReplywill be false after calling this method
-
hasReply
boolean hasReply()
-
receiveReply
T receiveReply()
Get and remove the reply. Subsequent calls toreceiveReply,expectReply, andexpectNoReplywill fail andhasReplywill be false after calling this method
-
-