c

org.apache.pekko.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 pekko.test.conf and run your tests with system property "pekko.mode" set to "test":


pekko {
  loggers = ["org.apache.pekko.testkit.TestEventListener"]
}

Annotations
@ccompatUsedUntil213()
Source
TestEventListener.scala
Linear Supertypes
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. Protected

Instance Constructors

  1. new TestEventListener()

Type Members

  1. type Receive = PartialFunction[Any, Unit]
    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from TestEventListener toany2stringadd[TestEventListener] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TestEventListener, B)
    Implicit
    This member is added by an implicit conversion from TestEventListener toArrowAssoc[TestEventListener] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def addFilter(filter: EventFilter): Unit
  7. def aroundPostRestart(reason: Throwable): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundPostStop(): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  10. def aroundPreStart(): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  11. def aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit
    Attributes
    protected[pekko]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  14. implicit val context: ActorContext
    Definition Classes
    Actor
  15. def debug(event: Debug): Unit
    Definition Classes
    StdOutLogger
  16. def ensuring(cond: (TestEventListener) => Boolean, msg: => Any): TestEventListener
    Implicit
    This member is added by an implicit conversion from TestEventListener toEnsuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (TestEventListener) => Boolean): TestEventListener
    Implicit
    This member is added by an implicit conversion from TestEventListener toEnsuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: => Any): TestEventListener
    Implicit
    This member is added by an implicit conversion from TestEventListener toEnsuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): TestEventListener
    Implicit
    This member is added by an implicit conversion from TestEventListener toEnsuring[TestEventListener] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  22. def error(event: Error): Unit
    Definition Classes
    StdOutLogger
  23. def filter(event: LogEvent): Boolean
  24. var filters: List[EventFilter]
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  27. def info(event: Info): Unit
    Definition Classes
    StdOutLogger
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  32. def postRestart(reason: Throwable): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  33. def postStop(): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  34. def preRestart(reason: Throwable, message: Option[Any]): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  35. def preStart(): Unit
    Definition Classes
    Actor
    Annotations
    @throws(classOf[java.lang.Exception])
  36. def print(event: Any): Unit
    Definition Classes
    StdOutLogger
  37. def receive: PartialFunction[Any, Unit]
    Definition Classes
    TestEventListener → DefaultLogger → Actor
  38. def removeFilter(filter: EventFilter): Unit
  39. implicit final val self: ActorRef
    Definition Classes
    Actor
  40. final def sender(): ActorRef
    Definition Classes
    Actor
  41. def supervisorStrategy: SupervisorStrategy
    Definition Classes
    Actor
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. def timestamp(event: LogEvent): String
    Definition Classes
    StdOutLogger
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. def unhandled(message: Any): Unit
    Definition Classes
    Actor
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. def warning(event: Warning): Unit
    Definition Classes
    StdOutLogger

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from TestEventListener toStringFormat[TestEventListener] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (TestEventListener, B)
    Implicit
    This member is added by an implicit conversion from TestEventListener toArrowAssoc[TestEventListener] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from DefaultLogger

Inherited from StdOutLogger

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromTestEventListener to any2stringadd[TestEventListener]

Inherited by implicit conversion StringFormat fromTestEventListener to StringFormat[TestEventListener]

Inherited by implicit conversion Ensuring fromTestEventListener to Ensuring[TestEventListener]

Inherited by implicit conversion ArrowAssoc fromTestEventListener to ArrowAssoc[TestEventListener]

Ungrouped