|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<String>
org.hamcrest.text.IsEmptyString
public final class IsEmptyString
Matches empty Strings (and null).
| Method Summary | |
|---|---|
void |
describeTo(Description description)
|
static Matcher<String> |
emptyOrNullString()
Creates a matcher of String that matches when the examined string is null, or
has zero length. |
static Matcher<String> |
emptyString()
Creates a matcher of String that matches when the examined string has zero length. |
static Matcher<String> |
isEmptyOrNullString()
Deprecated. use is(emptyOrNullString()) instead |
static Matcher<String> |
isEmptyString()
Deprecated. use is(emptyString()) instead |
boolean |
matchesSafely(String item)
|
| Methods inherited from class org.hamcrest.TypeSafeMatcher |
|---|
describeMismatch, describeMismatchSafely, matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
|---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean matchesSafely(String item)
matchesSafely in class TypeSafeMatcher<String>public void describeTo(Description description)
@Deprecated public static Matcher<String> isEmptyString()
String that matches when the examined string has zero length.
For example:
assertThat("", isEmptyString())
public static Matcher<String> emptyString()
String that matches when the examined string has zero length.
For example:
assertThat("", is(emptyString()))
@Deprecated public static Matcher<String> isEmptyOrNullString()
String that matches when the examined string is null, or
has zero length.
For example:
assertThat(((String)null), isEmptyOrNullString())
public static Matcher<String> emptyOrNullString()
String that matches when the examined string is null, or
has zero length.
For example:
assertThat(((String)null), is(emptyOrNullString()))
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||