|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
MockActionProxy()
|
|
| Method Summary | |
|---|---|
String |
execute()
Execute this ActionProxy. |
Object |
getAction()
Gets the Action instance for this Proxy. |
String |
getActionName()
Gets the alias name this ActionProxy is mapped to. |
ActionConfig |
getConfig()
Gets the ActionConfig this ActionProxy is built from. |
boolean |
getExecuteResult()
Gets the status of whether the ActionProxy is set to execute the Result after the Action is executed. |
ActionInvocation |
getInvocation()
Gets the ActionInvocation associated with this ActionProxy. |
String |
getMethod()
Gets the method name to execute, or null if no method has been specified (meaning execute will be invoked). |
String |
getNamespace()
Gets the namespace the ActionConfig for this ActionProxy is mapped to. |
boolean |
isExecutedCalled()
|
boolean |
isMethodSpecified()
Gets status of the method value's initialization. |
void |
prepare()
|
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)
|
void |
setMethodSpecified(boolean methodSpecified)
|
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 void prepare()
throws Exception
Exception
public String execute()
throws Exception
ActionProxy
execute in interface ActionProxyException - can be thrown.ActionInvocationpublic void setReturnedResult(String returnedResult)
public boolean isExecutedCalled()
public Object getAction()
ActionProxy
getAction in interface ActionProxypublic void setAction(Object action)
public String getActionName()
ActionProxy
getActionName in interface ActionProxypublic void setActionName(String actionName)
public ActionConfig getConfig()
ActionProxy
getConfig in interface ActionProxypublic void setConfig(ActionConfig config)
public boolean getExecuteResult()
ActionProxy
getExecuteResult in interface ActionProxypublic void setExecuteResult(boolean executeResult)
ActionProxy
setExecuteResult in interface ActionProxyexecuteResult - true to also execute the Result.public ActionInvocation getInvocation()
ActionProxy
getInvocation in interface ActionProxypublic void setInvocation(ActionInvocation invocation)
public String getNamespace()
ActionProxy
getNamespace in interface ActionProxypublic void setNamespace(String namespace)
public String getMethod()
ActionProxyexecute will be invoked).
getMethod in interface ActionProxypublic void setMethod(String method)
public boolean isMethodSpecified()
ActionProxy
isMethodSpecified in interface ActionProxypublic void setMethodSpecified(boolean methodSpecified)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||