net.liftweb.actor

MockLiftActor

class MockLiftActor extends MockSpecializedLiftActor[Any] with LiftActor

A MockLiftActor for use in testing other compnents that talk to actors.

Much like MockSpecializedLiftActor, this class is intended to be injected into other components, such as snippets, during testing. Whereas these components would normally talk to a real actor that would process their message, this mock actor simply records them and exposes methods the unit test can use to investigate what messages have been received by the actor.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MockLiftActor
  2. LiftActor
  3. ForwardableActor
  4. GenericActor
  5. TypedActor
  6. MockSpecializedLiftActor
  7. SpecializedLiftActor
  8. SimpleActor
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MockLiftActor()

Value Members

  1. def !(msg: Any): 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
    MockSpecializedLiftActorSpecializedLiftActorSimpleActor
  2. def !!(msg: Any): Box[Any]

    Send a message to the Actor and wait for the actor to process the message and reply.

    Send a message to the Actor and wait for the actor to process the message and reply.

    Definition Classes
    LiftActorTypedActor
  3. def !!(msg: Any, timeout: Long): Box[Any]

    Send a message to the Actor and wait for up to timeout milliseconds for the actor to process the message and reply.

    Send a message to the Actor and wait for up to timeout milliseconds for the actor to process the message and reply.

    Definition Classes
    LiftActorTypedActor
  4. def !<(msg: Any): LAFuture[Any]

    Send a message to the Actor and get an LAFuture that will contain the reply (if any) from the message

    Send a message to the Actor and get an LAFuture that will contain the reply (if any) from the message

    Definition Classes
    LiftActor
  5. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  7. def !?(timeout: Long, message: Any): Box[Any]

    Send a message to the Actor and wait for up to timeout milliseconds for the actor to process the message and reply.

    Send a message to the Actor and wait for up to timeout milliseconds for the actor to process the message and reply.

    Definition Classes
    LiftActorTypedActor
  8. def !?(msg: Any): Any

    Send a message to the Actor and wait for the actor to process the message and reply.

    Send a message to the Actor and wait for the actor to process the message and reply.

    Definition Classes
    LiftActorTypedActor
  9. final def ##(): Int

    Definition Classes
    AnyRef → Any
  10. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  12. 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
  13. 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
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def exceptionHandler: PartialFunction[Throwable, Unit]

    Attributes
    protected
    Definition Classes
    SpecializedLiftActor
  19. def execTranslate(f: (Any) ⇒ Unit)(v: Any): Unit

    Attributes
    protected
    Definition Classes
    LiftActorSpecializedLiftActor
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def forwardMessageTo(msg: Any, forwardTo: TypedActor[Any, Any]): Unit

    Attributes
    protected
    Definition Classes
    LiftActorForwardableActor
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def hasReceivedMessage_?(msg: Any): Boolean

    Test to see if this actor has received a particular message.

    Test to see if this actor has received a particular message.

    Definition Classes
    MockSpecializedLiftActor
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. def highPriorityReceive: Box[PartialFunction[Any, Unit]]

    Attributes
    protected
    Definition Classes
    SpecializedLiftActor
  26. def insertMsgAtHeadOfQueue_!(msg: Any): 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
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def messageCount: Int

    Return the number of messages this mock actor has received.

    Return the number of messages this mock actor has received.

    Definition Classes
    MockSpecializedLiftActor
  29. def messageHandler: PartialFunction[Any, Unit]

  30. def messages: List[Any]

    Returns the list of messages the mock actor has received.

    Returns the list of messages the mock actor has received.

    Definition Classes
    MockSpecializedLiftActor
  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def reply(v: Any): Unit

    The Actor should call this method with a reply to the message

    The Actor should call this method with a reply to the message

    Attributes
    protected
    Definition Classes
    LiftActorForwardableActor
  35. def send(msg: Any): 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
  36. def sendAndGetFuture(msg: Any): LAFuture[Any]

    Send a message to the Actor and get an LAFuture that will contain the reply (if any) from the message.

    Send a message to the Actor and get an LAFuture that will contain the reply (if any) from the message. This method calls !< and is here for Java compatibility.

    Definition Classes
    LiftActor
  37. def sendAndGetReply(timeout: Long, msg: Any): Any

    Send a message to the Actor and wait for up to timeout milliseconds for the actor to process the message and reply.

    Send a message to the Actor and wait for up to timeout milliseconds for the actor to process the message and reply. This method is the Java callable version of !?.

    Definition Classes
    LiftActor
  38. def sendAndGetReply(msg: Any): Any

    Send a message to the Actor and wait for the actor to process the message and reply.

    Send a message to the Actor and wait for the actor to process the message and reply. This method is the Java callable version of !?.

    Definition Classes
    LiftActor
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def testTranslate(f: (Any) ⇒ Boolean)(v: Any): Boolean

    Attributes
    protected
    Definition Classes
    LiftActorSpecializedLiftActor
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LiftActor

Inherited from ForwardableActor[Any, Any]

Inherited from GenericActor[Any]

Inherited from TypedActor[Any, Any]

Inherited from MockSpecializedLiftActor[Any]

Inherited from SpecializedLiftActor[Any]

Inherited from SimpleActor[Any]

Inherited from AnyRef

Inherited from Any

Ungrouped