agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestParameterProcessorIT.java
/**
     * Tests optional visible {@link SoftwareParameter} does not have its default value set when the parameter is not
     * present in the job request.
     */
Tests optional visible  SoftwareParameter does not have its default value set when the parameter is not
present in the job request.
Tests optional visible SoftwareParameter does not have its default value set when the parameter is not present in the job request .
@Test(enabled = true, dataProvider = "defaultValueParameterProvider")
    public void processIgnoresDefaultValueForOptionalVisibleParameter(SoftwareParameterType type, Object defaultValue) {
        String message = String.format("The optional visible %s software parameter's should not be set when absent from the job request parameters",
                type.name());
        try {
            SoftwareParameter param = createParameter("hiddenparam", type, defaultValue, null, false, true);
            ObjectNode jobParameters = _genericProcess(List.of(param), param.getKey(), null);
            assertFalse(jobParameters.has(param.getKey()), message);
        } catch (JobProcessingException e) {
            fail(message, e);
        } catch (IOException e) {
            fail("Error creating the software parameter to test", e);
        }
    }
@ Test ( enabled = true , dataProvider = "defaultValueParameterProvider" ) public void processIgnoresDefaultValueForOptionalVisibleParameter ( SoftwareParameterType type , Object defaultValue ) { String message = String . format ( "The optional visible %s software parameter's should not be set when absent from the job request parameters" , type . name ( ) ) ; try { SoftwareParameter param = createParameter ( "hiddenparam" , type , defaultValue , null , false , true ) ; ObjectNode jobParameters = _genericProcess ( List . of ( param ) , param . getKey ( ) , null ) ; assertFalse ( jobParameters . has ( param . getKey ( ) ) , message ) ; } catch ( JobProcessingException e ) { fail ( message , e ) ; } catch ( IOException e ) { fail ( "Error creating the software parameter to test" , e ) ; } }
Tests optional visible {@link SoftwareParameter} does not have its default value set when the parameter is not
 present in the job request.
Tests optional visible { @link SoftwareParameter } does not have its default value set when the parameter is not present in the job request .