abstract class EventFilter extends AnyRef
Facilities for selectively filtering out expected events from logging so that you can keep your test run’s console output clean and do not miss real error messages.
See the companion object for convenient factory methods.
If the occurrences
is set to Int.MaxValue, no tracking is done.
- Source
- TestEventListener.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- EventFilter
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Concrete Value Members
- final def apply(event: LogEvent): Boolean
-
def
assertDone(max: Duration): Unit
Assert that this filter has matched as often as requested by its
occurrences
parameter specifies. - def awaitDone(max: Duration): Boolean
-
def
intercept[T](code: ⇒ T)(implicit system: ActorSystem): T
Apply this filter while executing the given code block.
Apply this filter while executing the given code block. Care is taken to remove the filter when the block is finished or aborted.