|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.arquillian.impl.context.ContextLifecycleManager
public class ContextLifecycleManager

Handles creation and destruction of the scopes; Suite, Class, Test
There can only be one SuiteContext pr run. A SuiteContext can be associated with multiple ClassContexts that
again can be associated with multiple TestContexts.
Normal Lifecycle:
createRestoreSuiteContext()
createRestoreClassContext(Class)
...
createRestoreTestContext(Object)
destroyTestContext(Object)
...
destroyClassContext(Class)
destroySuiteContext()
| Constructor Summary | |
|---|---|
ContextLifecycleManager(Configuration configuration,
ProfileBuilder profileBuilder,
ServiceLoader serviceLoader)
|
|
ContextLifecycleManager(ProfileBuilder profileBuilder,
ServiceLoader serviceLoader)
|
|
| Method Summary | |
|---|---|
ClassContext |
createRestoreClassContext(Class<?> testClass)
Creates or restores the ClassContext. |
SuiteContext |
createRestoreSuiteContext()
Creates or restores the SuiteContext. |
TestContext |
createRestoreTestContext(Object testInstance)
Creates or restores the TestContext. |
void |
destroyClassContext(Class<?> testClass)
Destroy the Context associated with given test class. |
void |
destroySuiteContext()
Destroy the Context. |
void |
destroyTestContext(Object testInstance)
Destroy the Context associated with given test instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextLifecycleManager(ProfileBuilder profileBuilder,
ServiceLoader serviceLoader)
public ContextLifecycleManager(Configuration configuration,
ProfileBuilder profileBuilder,
ServiceLoader serviceLoader)
| Method Detail |
|---|
public SuiteContext createRestoreSuiteContext()
public void destroySuiteContext()
createRestoreSuiteContext() call.
testClass - Context associationpublic ClassContext createRestoreClassContext(Class<?> testClass)
testClass - The TestClass this Context belongs to
IllegalArgumentException - if testClass is null
IllegalStateException - if createRestoreSuiteContext() has not been calledpublic void destroyClassContext(Class<?> testClass)
createRestoreClassContext(Class) call.
testClass - Context associationpublic TestContext createRestoreTestContext(Object testInstance)
testInstance - The TestObject this Context belongs to
IllegalArgumentException - if testInstance is nullpublic void destroyTestContext(Object testInstance)
createRestoreTestContext(Object) call.
testInstance - Context association
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||