|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.mockrunner.mock.web.WebMockObjectFactory
com.mockrunner.mock.web.ActionMockObjectFactory
Used to create all types of struts mock objects. Maintains the necessary dependencies between the mock objects. If you use the mock objects returned by this factory in your tests you can be sure, they are all up to date.
| Constructor Summary | |
ActionMockObjectFactory()
Creates a new set of mock objects. |
|
ActionMockObjectFactory(WebMockObjectFactory factory)
Creates a set of mock objects based on another one. |
|
ActionMockObjectFactory(WebMockObjectFactory factory,
boolean createNewSession)
Creates a set of mock objects based on another one. |
|
| Method Summary | |
MockActionMapping |
getMockActionMapping()
Returns the MockActionMapping. |
MockActionServlet |
getMockActionServlet()
Returns the MockModuleConfig. |
MockModuleConfig |
getMockModuleConfig()
Returns the MockModuleConfig. |
void |
refresh()
Refreshes the mock objects dependencies. |
| Methods inherited from class com.mockrunner.mock.web.WebMockObjectFactory |
addRequestWrapper, addRequestWrapper, addResponseWrapper, addResponseWrapper, getMockFilterChain, getMockFilterConfig, getMockPageContext, getMockRequest, getMockResponse, getMockServletConfig, getMockServletContext, getMockSession, getSession, getWrappedRequest, getWrappedResponse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ActionMockObjectFactory()
public ActionMockObjectFactory(WebMockObjectFactory factory)
ServletContext.
factory - the other factoryBaseTestCase.createWebMockObjectFactory(WebMockObjectFactory)
public ActionMockObjectFactory(WebMockObjectFactory factory,
boolean createNewSession)
ServletContext anyway.
factory - the other factorycreateNewSession - true creates a new session,
false uses the session from factoryBaseTestCase.createWebMockObjectFactory(WebMockObjectFactory, boolean)| Method Detail |
public void refresh()
refresh in class WebMockObjectFactorypublic MockActionMapping getMockActionMapping()
MockActionMapping.
MockActionMappingpublic MockModuleConfig getMockModuleConfig()
MockModuleConfig.
MockModuleConfigpublic MockActionServlet getMockActionServlet()
MockModuleConfig.
MockModuleConfig
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||