public class HasLength extends Object implements PropertyExpectation<String>
PropertyExpectation to verify if a String matches a given regular expression| Constructor and Description |
|---|
HasLength(int length) |
| Modifier and Type | Method and Description |
|---|---|
String |
describe()
Return a description of expectation
|
boolean |
matches(String actual)
Check if this expectation is met
|
public boolean matches(String actual)
PropertyExpectationmatches in interface PropertyExpectation<String>public String describe()
PropertyExpectationdescribe in interface PropertyExpectation<String>Copyright © 2015. All rights reserved.