com.atlassian.core.ofbiz.test.mock
Class MockActionDispatcher

java.lang.Object
  extended by com.atlassian.core.ofbiz.test.mock.MockActionDispatcher
All Implemented Interfaces:
ActionDispatcher

public class MockActionDispatcher
extends Object
implements ActionDispatcher

This was taken from atlassian-ofbiz and placed into its now rightful home of JIRA.

Since:
4.3

Constructor Summary
MockActionDispatcher(boolean delegating)
           
 
Method Summary
 webwork.dispatcher.ActionResult execute(String actionName)
           
 webwork.dispatcher.ActionResult execute(String actionName, Map parameters)
           
 List getActionsCalled()
           
 Collection getCalls()
           
 List getParametersCalled()
           
 void setResult(String result)
           
 void setResultAction(webwork.action.Action action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockActionDispatcher

public MockActionDispatcher(boolean delegating)
Method Detail

execute

public webwork.dispatcher.ActionResult execute(String actionName)
                                        throws Exception
Specified by:
execute in interface ActionDispatcher
Throws:
Exception

execute

public webwork.dispatcher.ActionResult execute(String actionName,
                                               Map parameters)
                                        throws Exception
Specified by:
execute in interface ActionDispatcher
Throws:
Exception

getActionsCalled

public List getActionsCalled()

getParametersCalled

public List getParametersCalled()

setResult

public void setResult(String result)

setResultAction

public void setResultAction(webwork.action.Action action)

getCalls

public Collection getCalls()


Copyright © 2002-2013 Atlassian. All Rights Reserved.