agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/monitors/parsers/CondorJobStatusResponseParserTest.java
/**
     * Creates the test cases for {@link #parseSchedulerResponseProvider()} with remote job id less than 3 digits in
     * length to validate the comparison of left zero padded job id in the log headers.
     * @return test cases for job id with 1 and 2 digits for every {@link CondorLogJobStatus} except UNKNOWN
     */
Creates the test cases for  #parseSchedulerResponseProvider() with remote job id less than 3 digits in
length to validate the comparison of left zero padded job id in the log headers.
@return test cases for job id with 1 and 2 digits for every  CondorLogJobStatus except UNKNOWN
Creates the test cases for #parseSchedulerResponseProvider () with remote job id less than 3 digits in length to validate the comparison of left zero padded job id in the log headers . @return test cases for job id with 1 and 2 digits for every CondorLogJobStatus except UNKNOWN
@DataProvider
    protected Object[][] parseSchedulerResponseForSmallJobIdProvider()
    {
        List<Object[]> testCases = new ArrayList<Object[]>();
        for (String remoteJobId: List.of("1", "10", "1000", "10000", "1000000000")) {
            String altJobId = String.valueOf((long)Math.floor(Double.parseDouble(remoteJobId) * Math.PI));
            for (CondorLogJobStatus statusType : CondorLogJobStatus.values()) {
                if (statusType != CondorLogJobStatus.UNKNOWN) {
                    testCases.add(new Object[]{remoteJobId, getSchedulerResponseString(remoteJobId, statusType), statusType});
                    testCases.add(new Object[]{altJobId, getSchedulerResponseString(altJobId, statusType), statusType});
                }
            }
            testCases.add(new Object[]{ remoteJobId, getSchedulerResponseString(remoteJobId, "999"), CondorLogJobStatus.UNKNOWN });
            testCases.add(new Object[]{ altJobId, getSchedulerResponseString(altJobId, "999"), CondorLogJobStatus.UNKNOWN });
        }
        return testCases.toArray(new Object[][]{});
    }
@ DataProvider protected Object [ ] [ ] parseSchedulerResponseForSmallJobIdProvider ( ) { List < Object [ ] > testCases = new ArrayList < Object [ ] > ( ) ; for ( String remoteJobId : List . of ( "1" , "10" , "1000" , "10000" , "1000000000" ) ) { String altJobId = String . valueOf ( ( long ) Math . floor ( Double . parseDouble ( remoteJobId ) * Math . PI ) ) ; for ( CondorLogJobStatus statusType : CondorLogJobStatus . values ( ) ) { if ( statusType != CondorLogJobStatus . UNKNOWN ) { testCases . add ( new Object [ ] { remoteJobId , getSchedulerResponseString ( remoteJobId , statusType ) , statusType } ) ; testCases . add ( new Object [ ] { altJobId , getSchedulerResponseString ( altJobId , statusType ) , statusType } ) ; } } testCases . add ( new Object [ ] { remoteJobId , getSchedulerResponseString ( remoteJobId , "999" ) , CondorLogJobStatus . UNKNOWN } ) ; testCases . add ( new Object [ ] { altJobId , getSchedulerResponseString ( altJobId , "999" ) , CondorLogJobStatus . UNKNOWN } ) ; } return testCases . toArray ( new Object [ ] [ ] { } ) ; }
Creates the test cases for {@link #parseSchedulerResponseProvider()} with remote job id less than 3 digits in
 length to validate the comparison of left zero padded job id in the log headers.
Creates the test cases for { @link #parseSchedulerResponseProvider () } with remote job id less than 3 digits in length to validate the comparison of left zero padded job id in the log headers .
// skip unknown status as the empty value will cause an exception to be thrown