Package org.mockito.internal.matchers
Class NotNull
- java.lang.Object
-
- org.mockito.internal.matchers.NotNull
-
- All Implemented Interfaces:
java.io.Serializable,ArgumentMatcher<java.lang.Object>
public class NotNull extends java.lang.Object implements ArgumentMatcher<java.lang.Object>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNotNull()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.Object actual)Informs if this matcher accepts the given argument.java.lang.StringtoString()
-
-
-
Field Detail
-
NOT_NULL
public static final NotNull NOT_NULL
-
-
Method Detail
-
matches
public boolean matches(java.lang.Object actual)
Description copied from interface:ArgumentMatcherInforms if this matcher accepts the given argument.The method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for
ArgumentMatcher- Specified by:
matchesin interfaceArgumentMatcher<java.lang.Object>- Parameters:
actual- the argument- Returns:
- true if this matcher accepts the given argument.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-