Constructor and Description |
---|
TextMatchers() |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<Node> |
hasText(org.hamcrest.Matcher<String> matcher)
Creates a matcher that matches all
Text s whose text matches the given matcher . |
static org.hamcrest.Matcher<Node> |
hasText(String string)
Creates a matcher that matches all
Text s whose text equals the given string . |