org.jboss.arquillian.impl.context
Class TestContext

java.lang.Object
  extended by org.jboss.arquillian.impl.context.AbstractEventContext
      extended by org.jboss.arquillian.impl.context.TestContext
All Implemented Interfaces:
Context

public class TestContext
extends AbstractEventContext

A TestContext is alive in the following life cycles:

Used for firing events and storing of object that live in the Test Scope.

Version:
$Revision: $
Author:
Aslak Knutsen

Constructor Summary
TestContext(ClassContext classContext)
          Create a new TestContext for a given ClassContext.
 
Method Summary
 ClassContext getClassContext()
           
 Context getParentContext()
           
 
Methods inherited from class org.jboss.arquillian.impl.context.AbstractEventContext
add, fire, get, getEventManager, getServiceLoader, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestContext

public TestContext(ClassContext classContext)
Create a new TestContext for a given ClassContext.

Parameters:
classContext - The parent ClassContext
Throws:
IllegalArgumentException - if classContext is null
Method Detail

getClassContext

public ClassContext getClassContext()
Returns:
The parent ClassContext

getParentContext

public Context getParentContext()


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.