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)
ValuePredicate
true
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)
ValuePredicate
describeExpected
in interface ValuePredicate<String>
expected
- the expected value (nullable)actual
- the actual value (nullable)null
if is always/never expectedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.