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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventFilter
  2. AnyRef
  3. 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 EventFilter(occurrences: Int)

Concrete Value Members

  1. final def apply(event: LogEvent): Boolean
  2. def assertDone(max: Duration): Unit

    Assert that this filter has matched as often as requested by its occurrences parameter specifies.

  3. def awaitDone(max: Duration): Boolean
  4. 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.