|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.mock.BaseSeamTest
public class BaseSeamTest
Base class for integration tests for JSF/Seam applications. This class can be extended or referenced directly for integration with various testing frameworks.
Nested Class Summary | |
---|---|
class |
BaseSeamTest.ComponentTest
|
class |
BaseSeamTest.FacesRequest
|
class |
BaseSeamTest.NonFacesRequest
|
class |
BaseSeamTest.Script
Deprecated. use FacesRequest or NonFacesRequest |
Constructor Summary | |
---|---|
BaseSeamTest()
|
Method Summary | |
---|---|
void |
begin()
|
void |
cleanup()
|
protected void |
cleanupClass()
Cleanup this test class instance Must be run for each test class instance (e.g. |
protected javax.servlet.Filter |
createSeamFilter()
|
void |
end()
|
protected javax.el.ELResolver[] |
getELResolvers()
|
protected Object |
getField(Object object,
String fieldName)
Get the value of an object field, by reflection. |
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 javax.servlet.http.HttpSession |
getSession()
|
protected UserTransaction |
getUserTransaction()
|
void |
init()
|
void |
initServletContext(Map initParams)
Override to set up any servlet context attributes. |
protected void |
installMockTransport()
|
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)
Set the value of an object field, by reflection. |
protected void |
setupClass()
Setup this test class instance Must be run for each test class instance (e.g. |
protected void |
startJbossEmbeddedIfNecessary()
|
protected void |
startSeam()
Boot Seam. |
protected void |
stopSeam()
Shutdown Seam. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseSeamTest()
Method Detail |
---|
protected boolean isSessionInvalid()
protected javax.servlet.http.HttpSession getSession()
protected Object getInstance(Class clazz)
protected Object getInstance(String name)
protected boolean isLongRunningConversation()
public Object lookup(String name)
public void begin()
public void end()
public void init() throws Exception
Exception
protected void startSeam() throws Exception
Exception
protected void stopSeam() throws Exception
Exception
protected void setupClass() throws Exception
Exception
protected void cleanupClass() throws Exception
Exception
public void cleanup() throws Exception
Exception
protected javax.servlet.Filter createSeamFilter() throws javax.servlet.ServletException
javax.servlet.ServletException
public void initServletContext(Map initParams)
protected InitialContext getInitialContext() throws NamingException
NamingException
protected UserTransaction getUserTransaction() throws NamingException
NamingException
protected Object getField(Object object, String fieldName)
protected void setField(Object object, String fieldName, Object value)
protected void startJbossEmbeddedIfNecessary() throws Exception
Exception
protected javax.el.ELResolver[] getELResolvers()
protected void installMockTransport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |