Matcher
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | _dont_implement_Matcher___instead_extend_BaseMatcher_()
Implements org.
Deprecated
This method simply acts a friendly reminder not to implement Matcher directly and
instead extend BaseMatcher.
|
| public void | describeMismatch(Object
The item that the Matcher has rejected. item, Description The description to be built or appended to. description)Implements org. |
| protected static boolean | Returns: false iff the actual object is nullthe object to check actual, Description where to write the mismatch description, if any mismatch)Useful null-check method. |
| public String |
| BaseMatcher | back to summary |
|---|---|
| public BaseMatcher() | |
| _dont_implement_Matcher___instead_extend_BaseMatcher_ | back to summary |
|---|---|
| public final void _dont_implement_Matcher___instead_extend_BaseMatcher_() Implements org. Doc from org. Deprecated
This method simply acts a friendly reminder not to implement Matcher directly and instead extend BaseMatcher. It's easy to ignore JavaDoc, but a bit harder to ignore compile errors .
| |
| describeMismatch | back to summary |
|---|---|
| public void describeMismatch(Object item, Description description) Implements org. Doc from org. Generate a description of why the matcher has not accepted the item.
The description will be part of a larger description of why a matching
failed, so it should be concise.
This method assumes that
| |
| isNotNull | back to summary |
|---|---|
| protected static boolean isNotNull(Object actual, Description mismatch) Useful null-check method. Writes a mismatch description if the actual object is null
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |