public static enum TestCaseInstanceProvider.Type extends java.lang.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(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2011–2018 Carrot Search s.c.. All rights reserved.