agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/monitors/parsers/JobMonitorResponseParserFactoryTest.java
/**
     * Ceates a mock {@link Job} for testing using the given system and software.
     * @param executionSystem the execution system to assign to the job
     * @param software the software to assign to the job
     * @return a mock job instance for use in testing
     */
Ceates a mock  Job for testing using the given system and software.
@param executionSystem the execution system to assign to the job
@param software the software to assign to the job
@return a mock job instance for use in testing
Ceates a mock Job for testing using the given system and software . @param executionSystem the execution system to assign to the job @param software the software to assign to the job @return a mock job instance for use in testing
private Job createMockJob(ExecutionSystem executionSystem, Software software) {
        Job job = mock(Job.class);
        when(job.getSoftwareName()).thenReturn(software.getUniqueName());
        when(job.getExecutionType()).thenReturn(software.getExecutionType());
        when(job.getSchedulerType()).thenReturn(executionSystem.getScheduler());
        when(job.getSystem()).thenReturn(executionSystem.getSystemId());
        when(job.getUuid()).thenReturn(UUID.randomUUID().toString());
        when(job.getId()).thenReturn(1L);
        return job;
    }
private Job createMockJob ( ExecutionSystem executionSystem , Software software ) { Job job = mock ( Job . class ) ; when ( job . getSoftwareName ( ) ) . thenReturn ( software . getUniqueName ( ) ) ; when ( job . getExecutionType ( ) ) . thenReturn ( software . getExecutionType ( ) ) ; when ( job . getSchedulerType ( ) ) . thenReturn ( executionSystem . getScheduler ( ) ) ; when ( job . getSystem ( ) ) . thenReturn ( executionSystem . getSystemId ( ) ) ; when ( job . getUuid ( ) ) . thenReturn ( UUID . randomUUID ( ) . toString ( ) ) ; when ( job . getId ( ) ) . thenReturn ( 1L ) ; return job ; }
Ceates a mock {@link Job} for testing using the given system and software.
Ceates a mock { @link Job } for testing using the given system and software .