agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/monitors/parsers/JobMonitorResponseParserFactoryTest.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 = new ExecutionSystem();
        try {
            executionSystem.setScheduler(schedulerType);
            executionSystem.setExecutionType(executionType);
            executionSystem.setSystemId(UUID.randomUUID().toString());
        } catch (SystemArgumentException e) {
            Assert.fail("Test system id should not throw exception", e);
        }
        return executionSystem;
    }
private ExecutionSystem createMockExecutionSystem ( ExecutionType executionType , SchedulerType schedulerType ) { ExecutionSystem executionSystem = new ExecutionSystem ( ) ; try { executionSystem . setScheduler ( schedulerType ) ; executionSystem . setExecutionType ( executionType ) ; executionSystem . setSystemId ( UUID . randomUUID ( ) . toString ( ) ) ; } catch ( SystemArgumentException e ) { Assert . fail ( "Test system id should not throw exception" , e ) ; } return executionSystem ; }
Generator for test execution system.
Generator for test execution system .