|
||||||||||
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()
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()
|
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 |
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
Exception
public String execute() throws Exception
ActionProxy
execute
in interface ActionProxy
Exception
- can be thrown.ActionInvocation
public void setReturnedResult(String returnedResult)
public boolean isExecutedCalled()
public Object getAction()
ActionProxy
getAction
in interface ActionProxy
public void setAction(Object action)
public String getActionName()
ActionProxy
getActionName
in interface ActionProxy
public void setActionName(String actionName)
public ActionConfig getConfig()
ActionProxy
getConfig
in interface ActionProxy
public void setConfig(ActionConfig config)
public boolean getExecuteResult()
ActionProxy
getExecuteResult
in interface ActionProxy
public void setExecuteResult(boolean executeResult)
ActionProxy
setExecuteResult
in interface ActionProxy
executeResult
- true to also execute the Result.public ActionInvocation getInvocation()
ActionProxy
getInvocation
in interface ActionProxy
public void setInvocation(ActionInvocation invocation)
public String getNamespace()
ActionProxy
getNamespace
in interface ActionProxy
public void setNamespace(String namespace)
public String getMethod()
ActionProxy
execute
will be invoked).
getMethod
in interface ActionProxy
public void setMethod(String method)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |