SkippableReceiveMatcher

net.ruippeixotog.akka.testkit.specs2.api.package$.SkippableReceiveMatcher
trait SkippableReceiveMatcher[P, A] extends ReceiveMatcher[P, A]

Attributes

Graph
Supertypes
trait ReceiveMatcher[P, A]
trait Matcher[P]
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

Skips non-matching messages until a matching one is received or a timeout occurs. Commonly used when the order of received messages cannot be guaranteed and the probe may receive other messages, like heartbeats.

Skips non-matching messages until a matching one is received or a timeout occurs. Commonly used when the order of received messages cannot be guaranteed and the probe may receive other messages, like heartbeats.

Attributes

Returns:

a new matcher that skips non-matching messages until a matching one is received or a timeout occurs.

Inherited methods

def ^^[S](f: S => Expectable[P], dummy: Int): Matcher[S]

Adapt a matcher to another. ex: be_==("message") ^^ (_.getMessage aka "trimmed") can be applied to an exception

Adapt a matcher to another. ex: be_==("message") ^^ (_.getMessage aka "trimmed") can be applied to an exception

The dummy value is used to help to disambiguate with the overloaded ^^ function

Attributes

Inherited from:
Matcher
def ^^[S](f: S => P): Matcher[S]

Adapt a matcher to another. ex: be_==("message") ^^ (_.getMessage) can be applied to an exception

Adapt a matcher to another. ex: be_==("message") ^^ (_.getMessage) can be applied to an exception

Attributes

Inherited from:
Matcher
def and[S <: P](m: => Matcher[S]): Matcher[S]

the logical and between 2 matchers

the logical and between 2 matchers

Attributes

See also:

MatchResult.and

Inherited from:
Matcher
def apply[S <: P](t: Expectable[S]): MatchResult[S]

apply this matcher to an Expectable

apply this matcher to an Expectable

Attributes

Returns:

a MatchResult describing the outcome of the match

Inherited from:
Matcher
def eventually(retries: Int, sleep: Int => Duration): Matcher[T]

Attributes

sleep

the function applied on the retry number (first is 1)

Returns:

a matcher that needs to eventually match, after a given number of retries and a sleep time

aResult mustEqual(expected).eventually(retries = 2, _ * 100.milliseconds)
Inherited from:
Matcher
def eventually(retries: Int, sleep: Duration): Matcher[T]

Attributes

Returns:

a matcher that needs to eventually match, after a given number of retries and a sleep time

Inherited from:
Matcher
def eventually: Matcher[T]

Attributes

Returns:

a matcher that needs to eventually match, after 40 retries and a sleep time of 100 milliseconds

Inherited from:
Matcher
def iff(b: Boolean): Matcher[T]

when the condition is true the matcher is applied, when it's false, the matcher must fail

when the condition is true the matcher is applied, when it's false, the matcher must fail

Attributes

Inherited from:
Matcher
def lazily: Matcher[() => T]

The lazily operator returns a Matcher which will match a function returning the expected value

The lazily operator returns a Matcher which will match a function returning the expected value

Attributes

Inherited from:
Matcher
def mute: Matcher[T]

Attributes

Returns:

a Matcher with no messages

Inherited from:
Matcher
def not: Matcher[T]

negate a Matcher

negate a Matcher

Attributes

See also:

MatchResult.not

Inherited from:
Matcher
def or[S <: P](m: => Matcher[S]): Matcher[S]

the logical or between 2 matchers

the logical or between 2 matchers

Attributes

See also:

MatchResult.or

Inherited from:
Matcher
def orPending(message: String => String): Matcher[T]

Attributes

Returns:

a Pending MatchResult if this matcher fails, modifying the failure message with a pending message.

Inherited from:
Matcher
def orPending(m: String): Matcher[T]

Attributes

Returns:

a Pending MatchResult if this matcher fails, prefixing the failure message with a pending message. If the pending message is empty, only the failure message is printed

Inherited from:
Matcher
def orPending: Matcher[T]

Attributes

Returns:

a Pending MatchResult if this matcher fails

Inherited from:
Matcher
def orSkip(message: String => String): Matcher[T]

Attributes

Returns:

a Skip MatchResult if this matcher fails, modifying the failure message with a skip message.

Inherited from:
Matcher
def orSkip(m: String): Matcher[T]

Attributes

Returns:

a Skip MatchResult if this matcher fails, prefixing the failure message with a skip message. If the skip message is empty, only the failure message is printed

Inherited from:
Matcher
def orSkip: Matcher[T]

Attributes

Returns:

a Skip MatchResult if this matcher fails

Inherited from:
Matcher
def setMessage(message: String): Matcher[T]

Attributes

Returns:

set a new failure message of a matcher

Inherited from:
Matcher
def test: T => Boolean

Attributes

Returns:

a test function corresponding to this matcher

Inherited from:
Matcher
def unless(b: Boolean, m: String): Matcher[T]

only apply this matcher if the condition is false

only apply this matcher if the condition is false

Attributes

Inherited from:
Matcher
def updateMessage(f: String => String): Matcher[T]

Attributes

Returns:

update the failure message of a matcher

Inherited from:
Matcher
def when(b: Boolean, m: String): Matcher[T]

only apply this matcher if the condition is true

only apply this matcher if the condition is true

Attributes

Inherited from:
Matcher