akka.testkit

TestEventListener

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"]
}

Source
TestEventListener.scala
Linear Supertypes
DefaultLogger, StdOutLogger, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestEventListener
  2. DefaultLogger
  3. StdOutLogger
  4. Actor
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestEventListener()

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Value Members

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

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

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

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

    Definition Classes
    Any
  8. def addFilter(filter: EventFilter): Unit

  9. def aroundPostRestart(reason: Throwable): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  10. def aroundPostStop(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  11. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  12. def aroundPreStart(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  13. def aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

  26. var filters: List[EventFilter]

  27. def finalize(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  43. implicit final val self: ActorRef

    Definition Classes
    Actor
  44. final def sender(): ActorRef

    Definition Classes
    Actor
  45. def supervisorStrategy: SupervisorStrategy

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

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

    Definition Classes
    StdOutLogger
  48. def toString(): String

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

    Definition Classes
    Actor
  50. final def wait(): Unit

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

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

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

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

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from TestEventListener to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (testEventListener: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from TestEventListener to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (testEventListener: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: TestEventListener

    Implicit information
    This member is added by an implicit conversion from TestEventListener to ArrowAssoc[TestEventListener] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testEventListener: ArrowAssoc[TestEventListener]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: TestEventListener

    Implicit information
    This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testEventListener: Ensuring[TestEventListener]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from DefaultLogger

Inherited from StdOutLogger

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TestEventListener to StringAdd

Inherited by implicit conversion any2stringfmt from TestEventListener to StringFormat

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

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

Ungrouped