agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/dao/JobSearchIT.java
/**
     * Generates daily, hourly and secondly tests of the {@link SearchTerm.Operator#ON} operator
     * for each {@link #DATETIME_FIELDS}. These should all match for a given data as they will all
     * be on the same day.
     * @return array of test case data
     */
Generates daily, hourly and secondly tests of the  SearchTerm.Operator#ON operator
for each  #DATETIME_FIELDS. These should all match for a given data as they will all
be on the same day.
@return array of test case data
Generates daily hourly and secondly tests of the SearchTerm . Operator#ON operator for each #DATETIME_FIELDS . These should all match for a given data as they will all be on the same day . @return array of test case data
@DataProvider(parallel = false)
    protected Object[][] findExactDateTimeProvider() {
        ArrayList<Object[]> testCases = new ArrayList<Object[]>();
        for (String dateTimeField : DATETIME_FIELDS) {
            testCases.add(new Object[]{dateTimeField + "." + SearchTerm.Operator.ON.name(), "-1 hour", true});
            testCases.add(new Object[]{dateTimeField + "." + SearchTerm.Operator.ON.name(), "+1 hour", true});
            testCases.add(new Object[]{dateTimeField + "." + SearchTerm.Operator.ON.name(), "-30 second", true});
            testCases.add(new Object[]{dateTimeField + "." + SearchTerm.Operator.ON.name(), "+30 second", true});
            testCases.add(new Object[]{dateTimeField + "." + SearchTerm.Operator.ON.name(), "today", true});
        }
        return testCases.toArray(new Object[][]{});
    }
@ DataProvider ( parallel = false ) protected Object [ ] [ ] findExactDateTimeProvider ( ) { ArrayList < Object [ ] > testCases = new ArrayList < Object [ ] > ( ) ; for ( String dateTimeField : DATETIME_FIELDS ) { testCases . add ( new Object [ ] { dateTimeField + "." + SearchTerm . Operator . ON . name ( ) , "-1 hour" , true } ) ; testCases . add ( new Object [ ] { dateTimeField + "." + SearchTerm . Operator . ON . name ( ) , "+1 hour" , true } ) ; testCases . add ( new Object [ ] { dateTimeField + "." + SearchTerm . Operator . ON . name ( ) , "-30 second" , true } ) ; testCases . add ( new Object [ ] { dateTimeField + "." + SearchTerm . Operator . ON . name ( ) , "+30 second" , true } ) ; testCases . add ( new Object [ ] { dateTimeField + "." + SearchTerm . Operator . ON . name ( ) , "today" , true } ) ; } return testCases . toArray ( new Object [ ] [ ] { } ) ; }
Generates daily, hourly and secondly tests of the {@link SearchTerm.Operator#ON} operator
 for each {@link #DATETIME_FIELDS}.
Generates daily hourly and secondly tests of the { @link SearchTerm . Operator#ON } operator for each { @link #DATETIME_FIELDS } .