agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/monitors/DefaultJobMonitorTest.java
/**
     * Ceates a mock {@link Job} for testing using the given system and software.
     * @param executionType the execution type of the execution system to assign to the job
     * @param schedulerType the type of scheduler to which the job will be submitted
     * @return a mock job instance for use in testing
     */
Ceates a mock  Job for testing using the given system and software.
@param executionType the execution type of the execution system to assign to the job
@param schedulerType the type of scheduler to which the job will be submitted
@return a mock job instance for use in testing
Ceates a mock Job for testing using the given system and software . @param executionType the execution type of the execution system to assign to the job @param schedulerType the type of scheduler to which the job will be submitted @return a mock job instance for use in testing
private Job createMockJob(ExecutionType executionType, SchedulerType schedulerType) {
        Job job = mock(Job.class);
        when(job.getSoftwareName()).thenReturn(UUID.randomUUID() + "-0.1");
        when(job.getExecutionType()).thenReturn(executionType);
        when(job.getSchedulerType()).thenReturn(schedulerType);
        when(job.getSystem()).thenReturn(UUID.randomUUID().toString());
        when(job.getUuid()).thenReturn(new AgaveUUID(UUIDType.JOB).toString());
        when(job.getId()).thenReturn(1L);
        when(job.getLocalJobId()).thenReturn("12345");
        when(job.isArchiveOutput()).thenReturn(false);
        return job;
    }
private Job createMockJob ( ExecutionType executionType , SchedulerType schedulerType ) { Job job = mock ( Job . class ) ; when ( job . getSoftwareName ( ) ) . thenReturn ( UUID . randomUUID ( ) + "-0.1" ) ; when ( job . getExecutionType ( ) ) . thenReturn ( executionType ) ; when ( job . getSchedulerType ( ) ) . thenReturn ( schedulerType ) ; when ( job . getSystem ( ) ) . thenReturn ( UUID . randomUUID ( ) . toString ( ) ) ; when ( job . getUuid ( ) ) . thenReturn ( new AgaveUUID ( UUIDType . JOB ) . toString ( ) ) ; when ( job . getId ( ) ) . thenReturn ( 1L ) ; when ( job . getLocalJobId ( ) ) . thenReturn ( "12345" ) ; when ( job . isArchiveOutput ( ) ) . thenReturn ( false ) ; 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 .