public class Find extends java.lang.Object implements ArgumentMatcher<java.lang.String>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
regex |
| Constructor and Description |
|---|
Find(java.lang.String regex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(java.lang.String actual)
Informs if this matcher accepts the given argument.
|
java.lang.String |
toString() |
public boolean matches(java.lang.String actual)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for ArgumentMatcher
matches in interface ArgumentMatcher<java.lang.String>actual - the argumentpublic java.lang.String toString()
toString in class java.lang.Object