Package de.xima.fc.e2e.shared
Enum ETestCaseSetupMethod
- java.lang.Object
-
- java.lang.Enum<ETestCaseSetupMethod>
-
- de.xima.fc.e2e.shared.ETestCaseSetupMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<ETestCaseSetupMethod>
public enum ETestCaseSetupMethod extends Enum<ETestCaseSetupMethod>
Enumeration of the possible types to set up a test case.- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_IMPORT
Imports a client export file (that can e.g. be created via the integration test plugin).NEW_CLIENT
Creates a new client with all default entities as if a new client had been created via the UI.NONE
No setup is required (e.g. when testing the system).PROJECT_IMPORT
Creates a new client likeNEW_CLIENT
, and imports one ore more project export files.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
static ETestCaseSetupMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static ETestCaseSetupMethod
valueOfOrNull(String value)
static ETestCaseSetupMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_IMPORT
public static final ETestCaseSetupMethod CLIENT_IMPORT
Imports a client export file (that can e.g. be created via the integration test plugin).
-
NEW_CLIENT
public static final ETestCaseSetupMethod NEW_CLIENT
Creates a new client with all default entities as if a new client had been created via the UI.
-
NONE
public static final ETestCaseSetupMethod NONE
No setup is required (e.g. when testing the system). Removes all clients afterwards.
-
PROJECT_IMPORT
public static final ETestCaseSetupMethod PROJECT_IMPORT
Creates a new client likeNEW_CLIENT
, and imports one ore more project export files.
-
-
Method Detail
-
values
public static ETestCaseSetupMethod[] 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 (ETestCaseSetupMethod c : ETestCaseSetupMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ETestCaseSetupMethod valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDisplayName
public String getDisplayName()
- Returns:
- The human-readable name of this setup method.
-
valueOfOrNull
public static ETestCaseSetupMethod valueOfOrNull(String value)
- Parameters:
value
- Value to parse.- Returns:
- The setup method corresponding to the given value, or
null
when no such method exists.
-
-