EventFilter

org.apache.pekko.testkit.EventFilter
See theEventFilter companion object
abstract class EventFilter(occurrences: Int)

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.

Attributes

Companion
object
Source
TestEventListener.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

final def apply(event: LogEvent): Boolean

Attributes

Source
TestEventListener.scala
def assertDone(max: Duration): Unit

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

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

Attributes

Source
TestEventListener.scala

Attributes

Source
TestEventListener.scala
def intercept[T](code: => T)(implicit system: ActorSystem): T

Apply this filter while executing the given code block. Care is taken to remove the filter when the block is finished or aborted.

Apply this filter while executing the given code block. Care is taken to remove the filter when the block is finished or aborted.

Attributes

Source
TestEventListener.scala