Java Code Examples for org.mockito.ArgumentMatchers#isNull()

The following examples show how to use org.mockito.ArgumentMatchers#isNull() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultHttp2ConnectionTest.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("unchecked")
private static <T> T streamEq(T stream) {
    return (T) (stream == null ? ArgumentMatchers.<Http2Stream>isNull() : eq(stream));
}
 
Example 2
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#isNull()}.
 */
default <T> T isNull() {
    return ArgumentMatchers.isNull();
}
 
Example 3
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 2 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#isNull(Class)}.
 *
 * @deprecated This will be removed in Mockito 3.0.
 */
@Deprecated
default <T> T isNull(Class<T> clazz) {
    return ArgumentMatchers.isNull(clazz);
}