org.jboss.seam.mock
public class AbstractSeamTest extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSeamTest.ComponentTest |
class |
AbstractSeamTest.FacesRequest |
class |
AbstractSeamTest.NonFacesRequest |
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.Filter |
seamFilter |
protected javax.servlet.ServletContext |
servletContext |
protected MockHttpSession |
session |
| Constructor and Description |
|---|
AbstractSeamTest() |
| Modifier and Type | Method and Description |
|---|---|
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(javax.servlet.ServletContext realContext) |
void |
end() |
protected String |
getConversationIdParameter() |
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 |
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 |
startSeam()
Boot Seam.
|
protected void |
stopSeam()
Shutdown Seam.
|
protected javax.servlet.ServletContext servletContext
protected MockHttpSession session
protected javax.servlet.Filter seamFilter
protected boolean isSessionInvalid()
protected javax.servlet.http.HttpSession getSession()
protected Object getInstance(Class clazz)
protected Object getInstance(String name)
protected boolean isLongRunningConversation()
protected String getConversationIdParameter()
public void begin()
public void end()
protected void startSeam()
throws Exception
Exceptionprotected javax.servlet.ServletContext createServletContext(javax.servlet.ServletContext realContext)
protected void stopSeam()
throws Exception
Exceptionprotected void setupClass()
throws Exception
Exceptionprotected void cleanupClass()
throws Exception
Exceptionprotected javax.servlet.Filter createSeamFilter()
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic 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)
protected javax.el.ELResolver[] getELResolvers()
protected void installMockTransport()
Copyright © 2015 Seam Framework. All Rights Reserved.