Class

akka.testkit

TestEventListener

Related Doc: package testkit

Permalink

class TestEventListener extends DefaultLogger

EventListener for running tests, which allows selectively filtering out expected messages. To use it, include something like this into akka.test.conf and run your tests with system property "akka.mode" set to "test":


akka {
  loggers = ["akka.testkit.TestEventListener"]
}

Annotations
@ccompatUsedUntil213()
Source
TestEventListener.scala
Linear Supertypes
DefaultLogger, RequiresMessageQueue[LoggerMessageQueueSemantics], StdOutLogger, Actor, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestEventListener
  2. DefaultLogger
  3. RequiresMessageQueue
  4. StdOutLogger
  5. Actor
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestEventListener()

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to any2stringadd[TestEventListener] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TestEventListener, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to ArrowAssoc[TestEventListener] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addFilter(filter: EventFilter): Unit

    Permalink
  7. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  10. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  11. def aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  15. def debug(event: Debug): Unit

    Permalink
    Definition Classes
    StdOutLogger
  16. def ensuring(cond: (TestEventListener) ⇒ Boolean, msg: ⇒ Any): TestEventListener

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (TestEventListener) ⇒ Boolean): TestEventListener

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): TestEventListener

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): TestEventListener

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def error(event: Error): Unit

    Permalink
    Definition Classes
    StdOutLogger
  23. def filter(event: LogEvent): Boolean

    Permalink
  24. var filters: List[EventFilter]

    Permalink
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to StringFormat[TestEventListener] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. def info(event: Info): Unit

    Permalink
    Definition Classes
    StdOutLogger
  30. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  35. def postStop(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  36. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  37. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  38. def print(event: Any): Unit

    Permalink
    Definition Classes
    StdOutLogger
  39. def receive: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    TestEventListener → DefaultLogger → Actor
  40. def removeFilter(filter: EventFilter): Unit

    Permalink
  41. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  42. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  43. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def timestamp(event: LogEvent): String

    Permalink
    Definition Classes
    StdOutLogger
  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  48. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def warning(event: Warning): Unit

    Permalink
    Definition Classes
    StdOutLogger
  52. def [B](y: B): (TestEventListener, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestEventListener to ArrowAssoc[TestEventListener] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from DefaultLogger

Inherited from RequiresMessageQueue[LoggerMessageQueueSemantics]

Inherited from StdOutLogger

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TestEventListener to any2stringadd[TestEventListener]

Inherited by implicit conversion StringFormat from TestEventListener to StringFormat[TestEventListener]

Inherited by implicit conversion Ensuring from TestEventListener to Ensuring[TestEventListener]

Inherited by implicit conversion ArrowAssoc from TestEventListener to ArrowAssoc[TestEventListener]

Ungrouped