Search in sources :

Example 1 with GetJobOutputCommand

use of org.ow2.proactive_grid_cloud_portal.cli.cmd.sched.GetJobOutputCommand in project scheduling by ow2-proactive.

the class GetJobOutputCommandTest method executeCommandWithArgs.

@Override
protected void executeCommandWithArgs(Object... args) {
    Command command = null;
    if (args.length == 1) {
        command = new GetJobOutputCommand((String) args[0]);
    } else {
        command = new GetJobOutputCommand((String) args[0], (String) args[1]);
    }
    command.execute(context);
}
Also used : Command(org.ow2.proactive_grid_cloud_portal.cli.cmd.Command) GetJobOutputCommand(org.ow2.proactive_grid_cloud_portal.cli.cmd.sched.GetJobOutputCommand) GetJobOutputCommand(org.ow2.proactive_grid_cloud_portal.cli.cmd.sched.GetJobOutputCommand) Matchers.anyString(org.mockito.Matchers.anyString)

Aggregations

Matchers.anyString (org.mockito.Matchers.anyString)1 Command (org.ow2.proactive_grid_cloud_portal.cli.cmd.Command)1 GetJobOutputCommand (org.ow2.proactive_grid_cloud_portal.cli.cmd.sched.GetJobOutputCommand)1