agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestParameterProcessorIT.java
/**
     * Generates test cases for each {@link SoftwareParameterType} to test that the default value for the parameter
     * is set by {@link JobRequestParameterProcessor#process(Map).}. Hidden parameters cannot have
     * null default values, so we do not need to test situations where the default value is null.
     *
     * @return test cases
     */
Generates test cases for each  SoftwareParameterType to test that the default value for the parameter
is set by  JobRequestParameterProcessor#process(Map).. Hidden parameters cannot have
null default values, so we do not need to test situations where the default value is null.

@return test cases
Generates test cases for each SoftwareParameterType to test that the default value for the parameter is set by JobRequestParameterProcessor#process ( Map ) .. Hidden parameters cannot have null default values so we do not need to test situations where the default value is null . @return test cases
@DataProvider
    public Object[][] defaultValueParameterProvider() {
        List<Object[]> testData = new ArrayList<Object[]>();
        testData.add(new Object[]{SoftwareParameterType.flag, Boolean.TRUE});
        testData.add(new Object[]{SoftwareParameterType.flag, Boolean.FALSE});
        testData.add(new Object[]{SoftwareParameterType.bool, Boolean.TRUE});
        testData.add(new Object[]{SoftwareParameterType.bool, Boolean.FALSE});
        testData.add(new Object[]{SoftwareParameterType.enumeration, "ALPHA"});
        testData.add(new Object[]{SoftwareParameterType.enumeration, "BETA"});
        testData.add(new Object[]{SoftwareParameterType.number, 512L});
        testData.add(new Object[]{SoftwareParameterType.number, 0});
        testData.add(new Object[]{SoftwareParameterType.number, -1});
        testData.add(new Object[]{SoftwareParameterType.string, ""});
        testData.add(new Object[]{SoftwareParameterType.string, UUID.randomUUID().toString()});
        testData.add(new Object[]{SoftwareParameterType.string, "null"});
        testData.add(new Object[]{SoftwareParameterType.string, "   "});
        return testData.toArray(new Object[][]{});
    }
@ DataProvider public Object [ ] [ ] defaultValueParameterProvider ( ) { List < Object [ ] > testData = new ArrayList < Object [ ] > ( ) ; testData . add ( new Object [ ] { SoftwareParameterType . flag , Boolean . TRUE } ) ; testData . add ( new Object [ ] { SoftwareParameterType . flag , Boolean . FALSE } ) ; testData . add ( new Object [ ] { SoftwareParameterType . bool , Boolean . TRUE } ) ; testData . add ( new Object [ ] { SoftwareParameterType . bool , Boolean . FALSE } ) ; testData . add ( new Object [ ] { SoftwareParameterType . enumeration , "ALPHA" } ) ; testData . add ( new Object [ ] { SoftwareParameterType . enumeration , "BETA" } ) ; testData . add ( new Object [ ] { SoftwareParameterType . number , 512L } ) ; testData . add ( new Object [ ] { SoftwareParameterType . number , 0 } ) ; testData . add ( new Object [ ] { SoftwareParameterType . number , - 1 } ) ; testData . add ( new Object [ ] { SoftwareParameterType . string , "" } ) ; testData . add ( new Object [ ] { SoftwareParameterType . string , UUID . randomUUID ( ) . toString ( ) } ) ; testData . add ( new Object [ ] { SoftwareParameterType . string , "null" } ) ; testData . add ( new Object [ ] { SoftwareParameterType . string , "   " } ) ; return testData . toArray ( new Object [ ] [ ] { } ) ; }
Generates test cases for each {@link SoftwareParameterType} to test that the default value for the parameter
 is set by {@link JobRequestParameterProcessor#process(Map).}.
Generates test cases for each { @link SoftwareParameterType } to test that the default value for the parameter is set by { @link JobRequestParameterProcessor#process ( Map ) . } .