public class TemplateMatcher
extends org.hamcrest.TypeSafeDiagnosingMatcher<java.lang.String>
Request.template
.Constructor and Description |
---|
TemplateMatcher(java.lang.String text)
Constructs template matcher for matching string against given template.
|
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description)
Generate a description of why the matcher has not accepted the item.
|
protected boolean |
matchesSafely(java.lang.String item,
org.hamcrest.Description mismatchDescription) |
public TemplateMatcher(java.lang.String text)
text
- template to match againstprotected boolean matchesSafely(java.lang.String item, org.hamcrest.Description mismatchDescription)
matchesSafely
in class org.hamcrest.TypeSafeDiagnosingMatcher<java.lang.String>
public void describeTo(org.hamcrest.Description description)
description
- The description to be built or appended to.