|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.mock.MockActionProxy
public class MockActionProxy
Mock for an ActionProxy
.
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 |
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 |
Constructor Detail |
---|
public MockActionProxy()
Method Detail |
---|
public String execute() throws Exception
ActionProxy
execute
in interface ActionProxy
Exception
ActionInvocation
public void setReturnedResult(String returnedResult)
public boolean isExecutedCalled()
public Object getAction()
getAction
in interface ActionProxy
public void setAction(Object action)
public String getActionName()
getActionName
in interface ActionProxy
public void setActionName(String actionName)
public ActionConfig getConfig()
getConfig
in interface ActionProxy
public void setConfig(ActionConfig config)
public boolean getExecuteResult()
getExecuteResult
in interface ActionProxy
public void setExecuteResult(boolean executeResult)
ActionProxy
setExecuteResult
in interface ActionProxy
public ActionInvocation getInvocation()
getInvocation
in interface ActionProxy
public void setInvocation(ActionInvocation invocation)
public String getNamespace()
getNamespace
in interface ActionProxy
public void setNamespace(String namespace)
public String getMethod()
ActionProxy
getMethod
in interface ActionProxy
public void setMethod(String method)
ActionProxy
setMethod
in interface ActionProxy
method
- the string name of the method to invoke
|
XWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |