use of teammates.ui.controller.ActionFactory in project teammates by TEAMMATES.
the class GaeSimulation method getActionObject.
/**
* Returns an {@link Action} object that matches the parameters given.
*
* @param parameters Parameters that appear in a HttpServletRequest received by the app.
*/
public Action getActionObject(String uri, String... parameters) {
HttpServletRequest req = createWebRequest(uri, parameters);
Action action = new ActionFactory().getAction(req);
action.setTaskQueuer(new MockTaskQueuer());
action.setEmailSender(new MockEmailSender());
return action;
}
Aggregations