|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.mock.MockActionProxy
public class MockActionProxy
Mock for an ActionProxy.
| Field Summary | |
|---|---|
(package private) Object |
action
|
(package private) String |
actionName
|
(package private) ActionConfig |
config
|
(package private) Configuration |
configuration
|
(package private) boolean |
executedCalled
|
(package private) boolean |
executeResult
|
(package private) ActionInvocation |
invocation
|
(package private) String |
method
|
(package private) String |
namespace
|
(package private) String |
returnedResult
|
| Constructor Summary | |
|---|---|
MockActionProxy()
|
|
| Method Summary | |
|---|---|
String |
execute()
Execute this ActionProxy. |
Object |
getAction()
|
String |
getActionName()
|
ActionConfig |
getConfig()
|
boolean |
getExecuteResult()
|
ActionInvocation |
getInvocation()
|
String |
getMethod()
Returns the method to execute, or null if no method has been specified (meaning "execute" will be invoked) |
String |
getNamespace()
|
boolean |
isExecutedCalled()
|
void |
prepare()
Called after all dependencies are set |
void |
setAction(Object action)
|
void |
setActionName(String actionName)
|
void |
setConfig(ActionConfig config)
|
void |
setExecuteResult(boolean executeResult)
Sets whether this ActionProxy should also execute the Result after executing the Action |
void |
setInvocation(ActionInvocation invocation)
|
void |
setMethod(String method)
Sets the method to execute for the action invocation. |
void |
setNamespace(String namespace)
|
void |
setReturnedResult(String returnedResult)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Object action
String actionName
ActionConfig config
boolean executeResult
ActionInvocation invocation
String namespace
String method
boolean executedCalled
String returnedResult
Configuration configuration
| Constructor Detail |
|---|
public MockActionProxy()
| Method Detail |
|---|
public void prepare()
throws Exception
ActionProxy
prepare in interface ActionProxyException
public String execute()
throws Exception
ActionProxy
execute in interface ActionProxyExceptionActionInvocationpublic void setReturnedResult(String returnedResult)
public boolean isExecutedCalled()
public Object getAction()
getAction in interface ActionProxypublic void setAction(Object action)
public String getActionName()
getActionName in interface ActionProxypublic void setActionName(String actionName)
public ActionConfig getConfig()
getConfig in interface ActionProxypublic void setConfig(ActionConfig config)
public boolean getExecuteResult()
getExecuteResult in interface ActionProxypublic void setExecuteResult(boolean executeResult)
ActionProxy
setExecuteResult in interface ActionProxypublic ActionInvocation getInvocation()
getInvocation in interface ActionProxypublic void setInvocation(ActionInvocation invocation)
public String getNamespace()
getNamespace in interface ActionProxypublic void setNamespace(String namespace)
public String getMethod()
ActionProxy
getMethod in interface ActionProxypublic void setMethod(String method)
ActionProxy
setMethod in interface ActionProxymethod - the string name of the method to invoke
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||