Package org.fluentlenium.configuration
Enum ConfigurationProperties.DriverLifecycle
- java.lang.Object
-
- java.lang.Enum<ConfigurationProperties.DriverLifecycle>
-
- org.fluentlenium.configuration.ConfigurationProperties.DriverLifecycle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConfigurationProperties.DriverLifecycle>
- Enclosing interface:
- ConfigurationProperties
public static enum ConfigurationProperties.DriverLifecycle extends java.lang.Enum<ConfigurationProperties.DriverLifecycle>
Driver lifecycle.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASS
WebDriver is created for each test class, and same instance is used for each test method in the class.DEFAULT
Default value.JVM
WebDriver is created once, and same instance is used for each test class and method.METHOD
WebDriver is created for each test method, and this instance is used only for one test method.THREAD
WebDriver is created for each test thread, and this instance is used only for one test method.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigurationProperties.DriverLifecycle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConfigurationProperties.DriverLifecycle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JVM
public static final ConfigurationProperties.DriverLifecycle JVM
WebDriver is created once, and same instance is used for each test class and method.
-
CLASS
public static final ConfigurationProperties.DriverLifecycle CLASS
WebDriver is created for each test class, and same instance is used for each test method in the class.
-
METHOD
public static final ConfigurationProperties.DriverLifecycle METHOD
WebDriver is created for each test method, and this instance is used only for one test method.
-
THREAD
public static final ConfigurationProperties.DriverLifecycle THREAD
WebDriver is created for each test thread, and this instance is used only for one test method.
-
DEFAULT
public static final ConfigurationProperties.DriverLifecycle DEFAULT
Default value.
-
-
Method Detail
-
values
public static ConfigurationProperties.DriverLifecycle[] 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 (ConfigurationProperties.DriverLifecycle c : ConfigurationProperties.DriverLifecycle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationProperties.DriverLifecycle 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
-
-