| Modifier and Type | Field and Description |
|---|---|
| private static final IsEmptyString | |
| private static final Matcher |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static Matcher | isEmptyOrNullString()
Creates a matcher of |
| public static Matcher | |
| public boolean | matches(Object
the object against which the matcher is evaluated. item)Implements org. |
| INSTANCE | back to summary |
|---|---|
| private static final IsEmptyString INSTANCE | |
| NULL_OR_EMPTY_INSTANCE | back to summary |
|---|---|
private static final Matcher<String> NULL_OR_EMPTY_INSTANCE
| |
| IsEmptyString | back to summary |
|---|---|
| public IsEmptyString() | |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| isEmptyOrNullString | back to summary |
|---|---|
| public static Matcher Creates a matcher of For example: assertThat(((String)null), isEmptyString())
| |
| isEmptyString | back to summary |
|---|---|
| public static Matcher Creates a matcher of For example: assertThat("", isEmptyString())
| |
| matches | back to summary |
|---|---|
| public boolean matches(Object item) Implements org. Doc from org. Evaluates the matcher for argument item. This method matches against Object, instead of the generic type T. This is because the caller of the Matcher does not know at runtime what the type is (because of type erasure with Java generics). It is down to the implementations to check the correct type. | |