public class ContainsString extends Object implements ValuePredicate<String>
| Constructor and Description |
|---|
ContainsString() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String expected,
String actual)
Returns
true iff both values satisfy this predicate. |
String |
describeExpected(String expected,
String actual)
Returns an expected value as readable text.
|
public boolean accepts(String expected, String actual)
ValuePredicatetrue iff both values satisfy this predicate.accepts in interface ValuePredicate<String>expected - the expected value (nullable)actual - the actual value (nullable)true iff both values satisfy this predicate, false otherwise.public String describeExpected(String expected, String actual)
ValuePredicatedescribeExpected in interface ValuePredicate<String>expected - the expected value (nullable)actual - the actual value (nullable)null if is always/never expectedCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.