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

The following examples show how to use org.mockito.ArgumentMatchers#eq() . 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: SafeArgumentMatchers.java    From rabbitmq-mock with Apache License 2.0 4 votes vote down vote up
public static String eq(String expected) {
    ArgumentMatchers.eq(expected);
    return "";
}
 
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#eq(boolean)}.
 */
default boolean eq(boolean value) {
    return ArgumentMatchers.eq(value);
}
 
Example 3
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(byte)}.
 */
default byte eq(byte value) {
    return ArgumentMatchers.eq(value);
}
 
Example 4
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(char)}.
 */
default char eq(char value) {
    return ArgumentMatchers.eq(value);
}
 
Example 5
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(double)}.
 */
default double eq(double value) {
    return ArgumentMatchers.eq(value);
}
 
Example 6
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(float)}.
 */
default float eq(float value) {
    return ArgumentMatchers.eq(value);
}
 
Example 7
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(int)}.
 */
default int eq(int value) {
    return ArgumentMatchers.eq(value);
}
 
Example 8
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(long)}.
 */
default long eq(long value) {
    return ArgumentMatchers.eq(value);
}
 
Example 9
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(short)}.
 */
default short eq(short value) {
    return ArgumentMatchers.eq(value);
}
 
Example 10
Source File: WithMatchers.java    From mockito-java8 with Apache License 2.0 4 votes vote down vote up
/**
 * Delegates call to {@link ArgumentMatchers#eq(T)}.
 */
default <T> T eq(T value) {
    return ArgumentMatchers.eq(value);
}