< prev index next >

core/JemmyCore/src/org/jemmy/action/AbstractExecutor.java

Print this page

        

*** 57,94 **** * @see Environment#getOutput(java.lang.String) */ public static final String QUEUE_ACTION_OUTPUT = "org.jemmy.action.AbstractExecutor.QUEUE_ACTION_OUTPUT"; private ActionQueue queue; - /** - * - */ public AbstractExecutor() { queue = new ActionQueue(); } static { Environment.getEnvironment().initTimeout(MAX_ACTION_TIME); Environment.getEnvironment().initOutput(QUEUE_ACTION_OUTPUT, TestOut.getNullOutput()); Environment.getEnvironment().initOutput(NON_QUEUE_ACTION_OUTPUT, TestOut.getNullOutput()); } - /** - * - * @return - */ protected int actionsInQueue() { return queue.actionsInQueue(); } /** * {@inheritDoc } * Prints out what action is executed into output * specified by either NON_QUEUE_ACTION_OUTPUT or QUEUE_ACTION_OUTPUT * depending whether the action is called on queue or not. No output provided for * nested actions - only the top level ones are printed. ! * @see TestOut#getOutput(java.lang.String) */ public final void execute(Environment env, boolean dispatch, final Action action, Object... parameters) { printStrace(env, "Action: ", action); action.setAllowedTime(env.getTimeout(MAX_ACTION_TIME.getName()).getValue()); if (dispatch) { --- 57,88 ---- * @see Environment#getOutput(java.lang.String) */ public static final String QUEUE_ACTION_OUTPUT = "org.jemmy.action.AbstractExecutor.QUEUE_ACTION_OUTPUT"; private ActionQueue queue; public AbstractExecutor() { queue = new ActionQueue(); } static { Environment.getEnvironment().initTimeout(MAX_ACTION_TIME); Environment.getEnvironment().initOutput(QUEUE_ACTION_OUTPUT, TestOut.getNullOutput()); Environment.getEnvironment().initOutput(NON_QUEUE_ACTION_OUTPUT, TestOut.getNullOutput()); } protected int actionsInQueue() { return queue.actionsInQueue(); } /** * {@inheritDoc } + * * Prints out what action is executed into output * specified by either NON_QUEUE_ACTION_OUTPUT or QUEUE_ACTION_OUTPUT * depending whether the action is called on queue or not. No output provided for * nested actions - only the top level ones are printed. ! * @see TestOut#getOutput() */ public final void execute(Environment env, boolean dispatch, final Action action, Object... parameters) { printStrace(env, "Action: ", action); action.setAllowedTime(env.getTimeout(MAX_ACTION_TIME.getName()).getValue()); if (dispatch) {
*** 102,116 **** } } /** * {@inheritDoc } * Prints out what action is executed into output * specified by either NON_QUEUE_ACTION_OUTPUT or QUEUE_ACTION_OUTPUT * depending whether the action is called on queue or not. No output provided for * nested actions - only the top level ones are printed. ! * @see TestOut#getOutput(java.lang.String) */ public final void executeDetached(Environment env, boolean dispatch, final Action action, final Object... parameters) { printStrace(env, "Action detached: ", action); if (dispatch) { executeQueueDetached(env, action, parameters); --- 96,111 ---- } } /** * {@inheritDoc } + * * Prints out what action is executed into output * specified by either NON_QUEUE_ACTION_OUTPUT or QUEUE_ACTION_OUTPUT * depending whether the action is called on queue or not. No output provided for * nested actions - only the top level ones are printed. ! * @see TestOut#getOutput() */ public final void executeDetached(Environment env, boolean dispatch, final Action action, final Object... parameters) { printStrace(env, "Action detached: ", action); if (dispatch) { executeQueueDetached(env, action, parameters);
< prev index next >