| Modifier and Type | Field and Description |
|---|---|
| private static final IsEmptyString | |
| private static final Matcher |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static Matcher | emptyOrNullString()
Creates a matcher of |
| public static Matcher | |
| public static Matcher | isEmptyOrNullString()
Deprecated
use is(emptyOrNullString()) instead
Creates a matcher of String that matches when the examined string is null, or
has zero length.
|
| public static Matcher | isEmptyString()
Deprecated
use is(emptyString()) instead
Creates a matcher of String that matches when the examined string has zero length.
|
| public boolean | matchesSafely(String item)
Implements abstract 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 |
|---|---|
| private 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.
| |
| emptyOrNullString | back to summary |
|---|---|
| public static Matcher Creates a matcher of assertThat(((String)null), is(emptyOrNullString())) | |
| emptyString | back to summary |
|---|---|
| public static Matcher Creates a matcher of assertThat("", is(emptyString()))
| |
| isEmptyOrNullString | back to summary |
|---|---|
| public static Matcher Deprecated use is(emptyOrNullString()) instead Creates a matcher of assertThat(((String)null), isEmptyOrNullString())
| |
| isEmptyString | back to summary |
|---|---|
| public static Matcher Deprecated use is(emptyString()) instead Creates a matcher of assertThat("", isEmptyString())
| |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(String item) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |