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
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- TestEventListener
- DefaultLogger
- RequiresMessageQueue
- StdOutLogger
- Actor
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TestEventListener()
Type Members
-
type
Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from TestEventListener to any2stringadd[TestEventListener] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (TestEventListener, B)
- Implicit
- 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()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addFilter(filter: EventFilter): Unit
-
def
aroundPostRestart(reason: Throwable): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundPostStop(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundPreStart(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
def
aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
implicit
val
context: ActorContext
- Definition Classes
- Actor
-
def
debug(event: Debug): Unit
- Definition Classes
- StdOutLogger
-
def
ensuring(cond: (TestEventListener) ⇒ Boolean, msg: ⇒ Any): TestEventListener
- Implicit
- This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (TestEventListener) ⇒ Boolean): TestEventListener
- Implicit
- This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): TestEventListener
- Implicit
- This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): TestEventListener
- Implicit
- This member is added by an implicit conversion from TestEventListener to Ensuring[TestEventListener] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(event: Error): Unit
- Definition Classes
- StdOutLogger
- def filter(event: LogEvent): Boolean
- var filters: List[EventFilter]
-
def
formatted(fmtstr: String): String
- Implicit
- 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()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
info(event: Info): Unit
- Definition Classes
- StdOutLogger
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
postRestart(reason: Throwable): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
postStop(): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
preStart(): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
print(event: Any): Unit
- Definition Classes
- StdOutLogger
-
def
receive: PartialFunction[Any, Unit]
- Definition Classes
- TestEventListener → DefaultLogger → Actor
- def removeFilter(filter: EventFilter): Unit
-
implicit final
val
self: ActorRef
- Definition Classes
- Actor
-
final
def
sender(): ActorRef
- Definition Classes
- Actor
-
def
supervisorStrategy: SupervisorStrategy
- Definition Classes
- Actor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
timestamp(event: LogEvent): String
- Definition Classes
- StdOutLogger
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unhandled(message: Any): Unit
- Definition Classes
- Actor
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
warning(event: Warning): Unit
- Definition Classes
- StdOutLogger
-
def
→[B](y: B): (TestEventListener, B)
- Implicit
- This member is added by an implicit conversion from TestEventListener to ArrowAssoc[TestEventListener] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc