public class RegexpMatcher extends AbstractArgumentMatcher
ArgumentMatcher
implementation that treats the expected
value (provided while training the mock object) as a Perl5 Regular expression, which is matched
against the actual value.Constructor and Description |
---|
RegexpMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
compareArguments(java.lang.Object expected,
java.lang.Object actual)
Compares an expected argument value (provided when training the mock object), against the
actual argument value.
|
argumentMatches
public RegexpMatcher()
public boolean compareArguments(java.lang.Object expected, java.lang.Object actual)
ArgumentMatcher
equals()
).expected
- The expected argument valueactual
- The actual argument value