public static enum TestCaseInstanceProvider.Type extends Enum<TestCaseInstanceProvider.Type>
Enum Constant and Description |
---|
INSTANCE_PER_CONSTRUCTOR_ARGS
Each set of constructor arguments (provided from
ParametersFactory or the default empty constructor) creates an
instance that is then reused for all of the suite's tests. |
INSTANCE_PER_TEST_METHOD
Each method (test case) will receive a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
static TestCaseInstanceProvider.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestCaseInstanceProvider.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestCaseInstanceProvider.Type INSTANCE_PER_TEST_METHOD
public static final TestCaseInstanceProvider.Type INSTANCE_PER_CONSTRUCTOR_ARGS
ParametersFactory
or the default empty constructor) creates an
instance that is then reused for all of the suite's tests.public static TestCaseInstanceProvider.Type[] values()
for (TestCaseInstanceProvider.Type c : TestCaseInstanceProvider.Type.values()) System.out.println(c);
public static TestCaseInstanceProvider.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2011–2017 Carrot Search s.c.. All rights reserved.