FullReceiveMatcher
Attributes
- Graph
- Supertypes
- trait Matcher[P]class Objecttrait Matchableclass Any
- Known subtypes
- trait UntypedFullReceiveMatcher[P]
Members list
Value members
Abstract methods
Checks that the probe received a sequence of messages, possibly unordered. The timeout is applied to the whole sequence and not per message (i.e. all the messages have to be received before the timeout duration).
Checks that the probe received a sequence of messages, possibly unordered. The timeout is applied to the whole sequence and not per message (i.e. all the messages have to be received before the timeout duration).
Attributes
- msgs
the expected sequence of messages
- Returns:
a new matcher that expects a probe to have received all the messages in
msgs
, possibly unordered.
Checks that the received message is equal to the given value.
Checks that the received message is equal to the given value.
Attributes
- msg
the expected message
- Returns:
a new matcher that expects a probe to have received
msg
.
Checks that the received message satisfies a partial predicate or function applying further checks.
Checks that the received message satisfies a partial predicate or function applying further checks.
Attributes
- f
the partial predicate or function applying further checks
- Returns:
a new matcher that expects a probe to have received messages satisfying
f
.
Constrains the received messages to be of a given subtype.
Constrains the received messages to be of a given subtype.
Attributes
- B
the expected subtype of messages
- Returns:
a new matcher that expects a probe to have received messages of type
B
.
Applies a function to the received messages before checks. Commonly used to unwrap data in envelope-like messages.
Applies a function to the received messages before checks. Commonly used to unwrap data in envelope-like messages.
Attributes
- B
the return type of the function
- f
the function to apply to messages
- Returns:
a new matcher that applies
f
to messages before checking them.
Applies a partial function to the received messages before checks. Messages for which the function is undefined count as failures. Commonly used to unwrap data in envelope-like messages.
Applies a partial function to the received messages before checks. Messages for which the function is undefined count as failures. Commonly used to unwrap data in envelope-like messages.
Attributes
- B
the return type of the function
- f
the partial function to apply to messages
- Returns:
a new matcher that applies
f
to messages before checking them.
Checks that the received message satisfies a predicate or a function applying further checks.
Checks that the received message satisfies a predicate or a function applying further checks.
Attributes
- f
the predicate or function applying further checks
- Returns:
a new matcher that expects a probe to have received messages satisfying
f
.
Inherited methods
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
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
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 from:
- SkippableReceiveMatcher
the logical and between 2 matchers
the logical and between 2 matchers
Attributes
- See also:
MatchResult.and
- Inherited from:
- Matcher
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
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
Attributes
- Returns:
a matcher that needs to eventually match, after a given number of retries and a sleep time
- Inherited from:
- Matcher
Attributes
- Returns:
a matcher that needs to eventually match, after 40 retries and a sleep time of 100 milliseconds
- Inherited from:
- Matcher
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
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
Attributes
- Returns:
a Matcher with no messages
- Inherited from:
- Matcher
negate a Matcher
negate a Matcher
Attributes
- See also:
MatchResult.not
- Inherited from:
- Matcher
the logical or between 2 matchers
the logical or between 2 matchers
Attributes
- See also:
MatchResult.or
- Inherited from:
- Matcher
Attributes
- Returns:
a Pending MatchResult if this matcher fails, modifying the failure message with a pending message.
- Inherited from:
- Matcher
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
Attributes
- Returns:
a Pending MatchResult if this matcher fails
- Inherited from:
- Matcher
Attributes
- Returns:
a Skip MatchResult if this matcher fails, modifying the failure message with a skip message.
- Inherited from:
- Matcher
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
Attributes
- Returns:
a Skip MatchResult if this matcher fails
- Inherited from:
- Matcher
Attributes
- Returns:
set a new failure message of a matcher
- Inherited from:
- Matcher
Attributes
- Returns:
a test function corresponding to this matcher
- Inherited from:
- Matcher
only apply this matcher if the condition is false
only apply this matcher if the condition is false
Attributes
- Inherited from:
- Matcher
Attributes
- Returns:
update the failure message of a matcher
- Inherited from:
- Matcher
only apply this matcher if the condition is true
only apply this matcher if the condition is true
Attributes
- Inherited from:
- Matcher