agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/launchers/HPCLauncherTest.java
/**
     * Generator for test execution system.
     * @param executionType the execution type to assign
     * @param schedulerType the scheduler type to assign
     * @return an execution system to use in testing
     */
Generator for test execution system.
@param executionType the execution type to assign
@param schedulerType the scheduler type to assign
@return an execution system to use in testing
Generator for test execution system . @param executionType the execution type to assign @param schedulerType the scheduler type to assign @return an execution system to use in testing
private ExecutionSystem createMockExecutionSystem(ExecutionType executionType, SchedulerType schedulerType) {
        ExecutionSystem executionSystem = null;
        try {
            JSONObject json = JSONTestDataUtil.getInstance().getTestDataObject(JSONTestDataUtil.TEST_EXECUTION_SYSTEM_FILE);
            json.put("id", UUID.randomUUID().toString());
            executionSystem = ExecutionSystem.fromJSON(json);
        } catch (IOException|JSONException|SystemArgumentException e) {
            fail("Test system id should not throw exception", e);
        }
        return executionSystem;
    }
private ExecutionSystem createMockExecutionSystem ( ExecutionType executionType , SchedulerType schedulerType ) { ExecutionSystem executionSystem = null ; try { JSONObject json = JSONTestDataUtil . getInstance ( ) . getTestDataObject ( JSONTestDataUtil . TEST_EXECUTION_SYSTEM_FILE ) ; json . put ( "id" , UUID . randomUUID ( ) . toString ( ) ) ; executionSystem = ExecutionSystem . fromJSON ( json ) ; } catch ( IOException | JSONException | SystemArgumentException e ) { fail ( "Test system id should not throw exception" , e ) ; } return executionSystem ; }
Generator for test execution system.
Generator for test execution system .