CustomEventFilter
org.apache.pekko.testkit.CustomEventFilter
final case class CustomEventFilter(test: PartialFunction[LogEvent, Boolean])(occurrences: Int) extends EventFilter
Custom event filter when the others do not fit the bill.
If the partial function is defined and returns true, filter the event.
Attributes
- Source
- TestEventListener.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass EventFilterclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
This method decides whether to filter the event (true) or not (false).
This method decides whether to filter the event (true) or not (false).
Attributes
- Source
- TestEventListener.scala
Inherited methods
Attributes
- Inherited from:
- EventFilter
- Source
- TestEventListener.scala
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
- Inherited from:
- EventFilter
- Source
- TestEventListener.scala
Attributes
- Inherited from:
- EventFilter
- Source
- TestEventListener.scala
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
- Inherited from:
- EventFilter
- Source
- TestEventListener.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article