|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.mock.AbstractSeamTest
public class AbstractSeamTest
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 |
AbstractSeamTest.ComponentTest
|
class |
AbstractSeamTest.FacesRequest
|
class |
AbstractSeamTest.NonFacesRequest
|
| Field Summary | |
|---|---|
protected javax.servlet.Filter |
seamFilter
|
protected javax.servlet.ServletContext |
servletContext
|
protected MockHttpSession |
session
|
| Constructor Summary | |
|---|---|
AbstractSeamTest()
|
|
| Method Summary | |
|---|---|
void |
begin()
|
protected void |
cleanupClass()
Cleanup this test class instance Must be run for each test class instance (e.g. |
protected javax.servlet.Filter |
createSeamFilter()
|
protected javax.servlet.ServletContext |
createServletContext()
|
void |
end()
|
protected javax.el.ELResolver[] |
getELResolvers()
|
protected java.lang.Object |
getField(java.lang.Object object,
java.lang.String fieldName)
Get the value of an object field, by reflection. |
protected javax.naming.InitialContext |
getInitialContext()
|
protected java.lang.Object |
getInstance(java.lang.Class clazz)
Helper method for resolving components in the test script. |
protected java.lang.Object |
getInstance(java.lang.String name)
Helper method for resolving components in the test script. |
protected javax.servlet.http.HttpSession |
getSession()
|
protected javax.transaction.UserTransaction |
getUserTransaction()
|
void |
initServletContext(java.util.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()
|
java.lang.Object |
lookup(java.lang.String name)
Search in all contexts |
protected void |
setField(java.lang.Object object,
java.lang.String fieldName,
java.lang.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 |
| Field Detail |
|---|
protected javax.servlet.ServletContext servletContext
protected MockHttpSession session
protected javax.servlet.Filter seamFilter
| Constructor Detail |
|---|
public AbstractSeamTest()
| Method Detail |
|---|
protected boolean isSessionInvalid()
protected javax.servlet.http.HttpSession getSession()
protected java.lang.Object getInstance(java.lang.Class clazz)
protected java.lang.Object getInstance(java.lang.String name)
protected boolean isLongRunningConversation()
public java.lang.Object lookup(java.lang.String name)
public void begin()
public void end()
protected void startSeam()
throws java.lang.Exception
java.lang.Exceptionprotected javax.servlet.ServletContext createServletContext()
protected void stopSeam()
throws java.lang.Exception
java.lang.Exception
protected void setupClass()
throws java.lang.Exception
java.lang.Exception
protected void cleanupClass()
throws java.lang.Exception
java.lang.Exception
protected javax.servlet.Filter createSeamFilter()
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void initServletContext(java.util.Map initParams)
protected javax.naming.InitialContext getInitialContext()
throws javax.naming.NamingException
javax.naming.NamingException
protected javax.transaction.UserTransaction getUserTransaction()
throws javax.naming.NamingException
javax.naming.NamingException
protected java.lang.Object getField(java.lang.Object object,
java.lang.String fieldName)
protected void setField(java.lang.Object object,
java.lang.String fieldName,
java.lang.Object value)
protected void startJbossEmbeddedIfNecessary()
throws java.lang.Exception
java.lang.Exceptionprotected javax.el.ELResolver[] getELResolvers()
protected void installMockTransport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||