Send a message to the mock actor, which will be recorded and not processed by the message handler.
Send a message to the mock actor, which will be recorded and not processed by the message handler.
You can wrap calls around the evaluation of the mailbox.
You can wrap calls around the evaluation of the mailbox. This allows you to set up the environment.
A list of LoanWrappers that will be executed around the evaluation of mailboxes
A list of LoanWrappers that will be executed around the evaluation of mailboxes
Test to see if this actor has received a particular message.
This method inserts the message at the head of the mailbox.
This method inserts the message at the head of the mailbox. It's protected because this functionality may or may not want to be exposed.
Return the number of messages this mock actor has received.
Returns the list of messages the mock actor has received.
Send a message to the Actor.
Send a message to the Actor. This call will always succeed and return almost immediately. The message will be processed asynchronously. This is a Java-callable alias for !.
A SpecializedLiftActor designed for use in unit testing of other components.
Messages sent to an actor extending this interface are not processed, but are instead recorded in a List. The intent is that when you are testing some other component (say, a snippet) that should send a message to an actor, the test for that snippet should simply test that the actor received the message, not what the actor does with that message. If an actor implementing this trait is injected into the component you're testing (in place of the real actor) you gain the ability to run these kinds of tests.