agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestParameterProcessorIT.java
/**
     * Tests required hidden {@link SoftwareParameter} throws an exception when included in the job request
     */
Tests required hidden  SoftwareParameter throws an exception when included in the job request
Tests required hidden SoftwareParameter throws an exception when included in the job request
@Test(enabled = true, dataProvider = "processThrowsExceptionForHiddenParameterInRequestProvider", expectedExceptions = JobProcessingException.class)
    public void processRequiredVisibleParametersThrowExceptionWhenMissing(SoftwareParameterType type, Object defaultValue) throws JobProcessingException {
        String message = "Hidden parameters provided in the job request should throw an exception saying they cannot be set.";
        try {
            SoftwareParameter param = createParameter("missingRequiredParam", type, defaultValue, null, true, true);
            _genericProcess(List.of(param), param.getKey(), null);
            fail(message);
        } catch (IOException e) {
            fail("Error creating the software parameter to test", e);
        }
    }
@ Test ( enabled = true , dataProvider = "processThrowsExceptionForHiddenParameterInRequestProvider" , expectedExceptions = JobProcessingException . class ) public void processRequiredVisibleParametersThrowExceptionWhenMissing ( SoftwareParameterType type , Object defaultValue ) throws JobProcessingException { String message = "Hidden parameters provided in the job request should throw an exception saying they cannot be set." ; try { SoftwareParameter param = createParameter ( "missingRequiredParam" , type , defaultValue , null , true , true ) ; _genericProcess ( List . of ( param ) , param . getKey ( ) , null ) ; fail ( message ) ; } catch ( IOException e ) { fail ( "Error creating the software parameter to test" , e ) ; } }
Tests required hidden {@link SoftwareParameter} throws an exception when included in the job request
Tests required hidden { @link SoftwareParameter } throws an exception when included in the job request