| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.mock.SeamTest
public class SeamTest
Superclass for TestNG integration tests for JSF/Seam applications.
| Nested Class Summary | |
|---|---|
|  class | SeamTest.FacesRequest | 
|  class | SeamTest.NonFacesRequest | 
|  class | SeamTest.ScriptDeprecated. use FacesRequest or NonFacesRequest | 
| Constructor Summary | |
|---|---|
| SeamTest() | |
| Method Summary | |
|---|---|
|  void | begin() | 
|  void | cleanup() | 
| protected  AbstractSeamPhaseListener | createPhaseListener()Create a SeamPhaseListener by default. | 
|  void | end() | 
| protected  Object | getField(Object object,
         String fieldName) | 
| protected  Map<String,String[]> | getHeaders() | 
| protected  InitialContext | getInitialContext() | 
| protected  Object | getInstance(Class clazz)Helper method for resolving components in the test script. | 
| protected  Object | getInstance(String name)Helper method for resolving components in the test script. | 
| protected  Map<String,String[]> | getParameters() | 
| protected  javax.servlet.http.HttpSession | getSession() | 
| protected  UserTransaction | getUserTransaction() | 
|  void | init() | 
|  void | initServletContext(Map initParams)Override to set up any servlet context attributes. | 
| protected  boolean | isLongRunningConversation()Is there a long running conversation associated with the current request? | 
| protected  boolean | isSessionInvalid() | 
|  Object | lookup(String name)Search in all contexts | 
| protected  void | setField(Object object,
         String fieldName,
         Object value) | 
| protected  void | setPageParameter(String name,
                 Object value) | 
| protected  void | setParameter(String name,
             String value) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SeamTest()
| Method Detail | 
|---|
protected void setParameter(String name, String value)
protected void setPageParameter(String name, Object value)
protected Map<String,String[]> getParameters()
protected Map<String,String[]> getHeaders()
protected javax.servlet.http.HttpSession getSession()
protected boolean isSessionInvalid()
protected Object getInstance(Class clazz)
protected Object getInstance(String name)
protected boolean isLongRunningConversation()
public Object lookup(String name)
public void begin()
public void end()
protected AbstractSeamPhaseListener createPhaseListener()
public void init()
          throws Exception
Exception
public void cleanup()
             throws Exception
Exceptionpublic void initServletContext(Map initParams)
protected InitialContext getInitialContext() throws NamingException
NamingExceptionprotected UserTransaction getUserTransaction() throws NamingException
NamingExceptionprotected Object getField(Object object, String fieldName)
protected void setField(Object object, String fieldName, Object value)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||