Package org.testng.internal
Enum TestNGMethodFinder.MethodType
- java.lang.Object
-
- java.lang.Enum<TestNGMethodFinder.MethodType>
-
- org.testng.internal.TestNGMethodFinder.MethodType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TestNGMethodFinder.MethodType>
- Enclosing class:
- TestNGMethodFinder
static enum TestNGMethodFinder.MethodType extends java.lang.Enum<TestNGMethodFinder.MethodType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_CLASS
AFTER_GROUPS
AFTER_SUITE
AFTER_TEST
AFTER_TEST_METHOD
BEFORE_CLASS
BEFORE_GROUPS
BEFORE_SUITE
BEFORE_TEST
BEFORE_TEST_METHOD
-
Constructor Summary
Constructors Modifier Constructor Description private
MethodType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestNGMethodFinder.MethodType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TestNGMethodFinder.MethodType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_SUITE
public static final TestNGMethodFinder.MethodType BEFORE_SUITE
-
AFTER_SUITE
public static final TestNGMethodFinder.MethodType AFTER_SUITE
-
BEFORE_TEST
public static final TestNGMethodFinder.MethodType BEFORE_TEST
-
AFTER_TEST
public static final TestNGMethodFinder.MethodType AFTER_TEST
-
BEFORE_CLASS
public static final TestNGMethodFinder.MethodType BEFORE_CLASS
-
AFTER_CLASS
public static final TestNGMethodFinder.MethodType AFTER_CLASS
-
BEFORE_TEST_METHOD
public static final TestNGMethodFinder.MethodType BEFORE_TEST_METHOD
-
AFTER_TEST_METHOD
public static final TestNGMethodFinder.MethodType AFTER_TEST_METHOD
-
BEFORE_GROUPS
public static final TestNGMethodFinder.MethodType BEFORE_GROUPS
-
AFTER_GROUPS
public static final TestNGMethodFinder.MethodType AFTER_GROUPS
-
-
Method Detail
-
values
public static TestNGMethodFinder.MethodType[] 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 (TestNGMethodFinder.MethodType c : TestNGMethodFinder.MethodType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TestNGMethodFinder.MethodType 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
-
-