Interface ReplyInbox<T>


  • public interface ReplyInbox<T>
    Similar to an TestInbox, 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 Detail

      • expectReply

        void expectReply​(T expectedReply)
        Assert and remove the message. Subsequent calls to receiveReply, expectReply, and expectNoReply will fail and hasReplies will be false after calling this method
      • hasReply

        boolean hasReply()
      • receiveReply

        T receiveReply()
        Get and remove the reply. Subsequent calls to receiveReply, expectReply, and expectNoReply will fail and hasReplies will be false after calling this method