Package org.powermock.configuration
Enum ConfigurationType
- java.lang.Object
-
- java.lang.Enum<ConfigurationType>
-
- org.powermock.configuration.ConfigurationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConfigurationType>
public enum ConfigurationType extends java.lang.Enum<ConfigurationType>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<? extends Configuration>configurationClassprivate java.lang.Stringprefix
-
Constructor Summary
Constructors Modifier Constructor Description privateConfigurationType(java.lang.String prefix, java.lang.Class<? extends Configuration> configurationClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends Configuration>
ConfigurationTypeforClass(java.lang.Class<T> configurationClass)java.lang.StringgetPrefix()static ConfigurationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConfigurationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Mockito
public static final ConfigurationType Mockito
-
PowerMock
public static final ConfigurationType PowerMock
-
-
Field Detail
-
prefix
private final java.lang.String prefix
-
configurationClass
private final java.lang.Class<? extends Configuration> configurationClass
-
-
Constructor Detail
-
ConfigurationType
private ConfigurationType(java.lang.String prefix, java.lang.Class<? extends Configuration> configurationClass)
-
-
Method Detail
-
values
public static ConfigurationType[] 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 (ConfigurationType c : ConfigurationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationType 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
-
getPrefix
public java.lang.String getPrefix()
-
forClass
public static <T extends Configuration> ConfigurationType forClass(java.lang.Class<T> configurationClass)
-
-