public enum ContextLifeCycleMode extends Enum<ContextLifeCycleMode>
Defines the possible application context instantiations modes: once per test class or separately for each test method.
| Enum Constant and Description |
|---|
TEST
Implies that the
ApplicationContext instance will be created separately for each test. |
TEST_CASE
Implies that the
ApplicationContext instance will be created only once for the whole test case and will
be shared by all tests. |
| Modifier and Type | Method and Description |
|---|---|
static ContextLifeCycleMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContextLifeCycleMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContextLifeCycleMode TEST_CASE
ApplicationContext instance will be created only once for the whole test case and will
be shared by all tests.public static final ContextLifeCycleMode TEST
ApplicationContext instance will be created separately for each test.public static ContextLifeCycleMode[] values()
for (ContextLifeCycleMode c : ContextLifeCycleMode.values()) System.out.println(c);
public static ContextLifeCycleMode 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 © 2015 JBoss by Red Hat. All rights reserved.