站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.0.0 API 英文版文档

SeamTest (JBoss Seam API Documentation) - JBoss Seam 1.0.0 API 英文版文档


org.jboss.seam.mock
Class SeamTest

java.lang.Object
  extended by org.jboss.seam.mock.SeamTest

public class SeamTest
extends Object

Superclass for TestNG integration tests for JSF/Seam applications.

Version:
$Revision: 1.40 $
Author:
Gavin King, Thomas Heute

Nested Class Summary
 class SeamTest.Script
          Script is an abstract superclass for usually anonymous inner classes that test JSF interactions.
 
Constructor Summary
SeamTest()
           
 
Method Summary
 void begin()
           
 void cleanup()
           
protected  SeamPhaseListener createPhaseListener()
          Create a SeamPhaseListener by default.
 void end()
           
protected  javax.faces.context.FacesContext getFacesContext()
           
protected  Object getField(Object object, String fieldName)
           
protected  InitialContext getInitialContext()
           
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 isSessionInvalid()
           
protected  void setField(Object object, String fieldName, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamTest

public SeamTest()
Method Detail

getSession

protected javax.servlet.http.HttpSession getSession()

isSessionInvalid

protected boolean isSessionInvalid()

getFacesContext

protected javax.faces.context.FacesContext getFacesContext()

begin

public void begin()

end

public void end()

createPhaseListener

protected SeamPhaseListener createPhaseListener()
Create a SeamPhaseListener by default. Override to use one of the other standard Seam phase listeners.


init

public void init()
          throws Exception
Throws:
Exception

cleanup

public void cleanup()
             throws Exception
Throws:
Exception

initServletContext

public void initServletContext(Map initParams)
Override to set up any servlet context attributes.


getInitialContext

protected InitialContext getInitialContext()
                                    throws NamingException
Throws:
NamingException

getUserTransaction

protected UserTransaction getUserTransaction()
                                      throws NamingException
Throws:
NamingException

getField

protected Object getField(Object object,
                          String fieldName)

setField

protected void setField(Object object,
                        String fieldName,
                        Object value)