Java Code Examples for org.mockito.AdditionalMatchers#or()
The following examples show how to use
org.mockito.AdditionalMatchers#or() .
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: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(boolean, boolean)}. */ default boolean or(boolean first, boolean second) { return AdditionalMatchers.or(first, second); }
Example 2
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(T, T)}. */ default <T> T or(T first, T second) { return AdditionalMatchers.or(first, second); }
Example 3
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(short, short)}. */ default short or(short first, short second) { return AdditionalMatchers.or(first, second); }
Example 4
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(long, long)}. */ default long or(long first, long second) { return AdditionalMatchers.or(first, second); }
Example 5
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(int, int)}. */ default int or(int first, int second) { return AdditionalMatchers.or(first, second); }
Example 6
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(float, float)}. */ default float or(float first, float second) { return AdditionalMatchers.or(first, second); }
Example 7
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(double, double)}. */ default double or(double first, double second) { return AdditionalMatchers.or(first, second); }
Example 8
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(char, char)}. */ default char or(char first, char second) { return AdditionalMatchers.or(first, second); }
Example 9
Source File: WithAdditionalMatchers.java From mockito-java8 with Apache License 2.0 | 4 votes |
/** * Delegates call to {@link AdditionalMatchers#or(byte, byte)}. */ default byte or(byte first, byte second) { return AdditionalMatchers.or(first, second); }
Example 10
Source File: Matcher.java From simple-spring-memcached with MIT License | 4 votes |
public static <T> T any(final Class<T> clazz) { return (T) AdditionalMatchers.or(Mockito.any(clazz), Mockito.isNull()); }