Java Code Examples for org.mockito.AdditionalMatchers#and()

The following examples show how to use org.mockito.AdditionalMatchers#and() . 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 vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(boolean, boolean)}.
 */
default boolean and(boolean first, boolean second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 2
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(byte, byte)}.
 */
default byte and(byte first, byte second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 3
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(char, char)}.
 */
default char and(char first, char second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 4
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(double, double)}.
 */
default double and(double first, double second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 5
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(float, float)}.
 */
default float and(float first, float second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 6
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(int, int)}.
 */
default int and(int first, int second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 7
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(long, long)}.
 */
default long and(long first, long second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 8
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(short, short)}.
 */
default short and(short first, short second) {
    return AdditionalMatchers.and(first, second);
}
 
Example 9
Source File: WithAdditionalMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link AdditionalMatchers#and(T, T)}.
 */
default <T> T and(T first, T second) {
    return AdditionalMatchers.and(first, second);
}