Package org.mockito.internal.invocation
Enum MatcherApplicationStrategy.MatcherApplicationType
- java.lang.Object
-
- java.lang.Enum<MatcherApplicationStrategy.MatcherApplicationType>
-
- org.mockito.internal.invocation.MatcherApplicationStrategy.MatcherApplicationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MatcherApplicationStrategy.MatcherApplicationType>
- Enclosing class:
- MatcherApplicationStrategy
static enum MatcherApplicationStrategy.MatcherApplicationType extends java.lang.Enum<MatcherApplicationStrategy.MatcherApplicationType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_UNSUPPORTED_NUMBER_OF_MATCHERS
MATCH_EACH_VARARGS_WITH_LAST_MATCHER
ONE_MATCHER_PER_ARGUMENT
-
Constructor Summary
Constructors Modifier Constructor Description private
MatcherApplicationType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MatcherApplicationStrategy.MatcherApplicationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MatcherApplicationStrategy.MatcherApplicationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_MATCHER_PER_ARGUMENT
public static final MatcherApplicationStrategy.MatcherApplicationType ONE_MATCHER_PER_ARGUMENT
-
MATCH_EACH_VARARGS_WITH_LAST_MATCHER
public static final MatcherApplicationStrategy.MatcherApplicationType MATCH_EACH_VARARGS_WITH_LAST_MATCHER
-
ERROR_UNSUPPORTED_NUMBER_OF_MATCHERS
public static final MatcherApplicationStrategy.MatcherApplicationType ERROR_UNSUPPORTED_NUMBER_OF_MATCHERS
-
-
Method Detail
-
values
public static MatcherApplicationStrategy.MatcherApplicationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MatcherApplicationStrategy.MatcherApplicationType c : MatcherApplicationStrategy.MatcherApplicationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatcherApplicationStrategy.MatcherApplicationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-