public class Null extends ArgumentMatcher<Object> implements Serializable
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description)
By default this method decamelizes matchers name to promote meaningful names for matchers.
|
boolean |
matches(Object actual)
Returns whether this matcher accepts the given argument.
|
public static final Null NULL
public boolean matches(Object actual)
ArgumentMatcher
The method should never assert if the argument doesn't match. It should only return false.
matches
in interface org.hamcrest.Matcher<Object>
matches
in class ArgumentMatcher<Object>
actual
- the argumentBaseMatcher
public void describeTo(org.hamcrest.Description description)
ArgumentMatcher
For example StringWithStrongLanguage matcher will generate 'String with strong language' description in case of failure.
You might want to override this method to provide more specific description of the matcher (useful when verification failures are reported).
describeTo
in interface org.hamcrest.SelfDescribing
describeTo
in class ArgumentMatcher<Object>
description
- the description to which the matcher description is
appended.Mockito, MIT License