class MockSpecializedLiftActor[T] extends SpecializedLiftActor[T]
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.
- Alphabetic
- By Inheritance
- MockSpecializedLiftActor
- SpecializedLiftActor
- SimpleActor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MockSpecializedLiftActor()
Value Members
- def !(msg: T): Unit
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.
- Definition Classes
- MockSpecializedLiftActor → SpecializedLiftActor → SimpleActor
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def around[R](f: => R): R
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.
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def aroundLoans: List[CommonLoanWrapper]
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
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exceptionHandler: PartialFunction[Throwable, Unit]
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def execTranslate(f: (T) => Unit)(v: T): Unit
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasReceivedMessage_?(msg: T): Boolean
Test to see if this actor has received a particular message.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def highPriorityReceive: Box[PartialFunction[T, Unit]]
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def insertMsgAtHeadOfQueue_!(msg: T): Unit
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.
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def messageCount: Int
Return the number of messages this mock actor has received.
- def messageHandler: PartialFunction[T, Unit]
- Definition Classes
- MockSpecializedLiftActor → SpecializedLiftActor
- def messages: List[T]
Returns the list of messages the mock actor has received.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def send(msg: T): Unit
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 !.
- Definition Classes
- SpecializedLiftActor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def testTranslate(f: (T) => Boolean)(v: T): Boolean
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()