public final class StatefulFunctionMatchers
extends java.lang.Object
FunctionTestHarness
for usage details.
Modifier and Type | Method and Description |
---|---|
static MatchersByAddress |
messagesTo(Address to,
org.hamcrest.Matcher<?> matcher,
org.hamcrest.Matcher<?>... matchers) |
static MessagesSentToAddress |
sent(MatchersByAddress matcher,
MatchersByAddress... matchers)
A matcher that checks all the responses sent to a given
FunctionType . |
static SentNothingMatcher |
sentNothing()
A matcher that checks the function did not send any messages.
|
public static MatchersByAddress messagesTo(Address to, org.hamcrest.Matcher<?> matcher, org.hamcrest.Matcher<?>... matchers)
public static MessagesSentToAddress sent(MatchersByAddress matcher, MatchersByAddress... matchers)
FunctionType
.
Important: This matcher expects an exact match on the number of responses sent to this function.
matcher
- matcher for address.matchers
- matchers for addresses.FunctionType
.public static SentNothingMatcher sentNothing()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.