agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests optional hidden {@link SoftwareInput} throws an exception when included in the job request
     */
Tests optional hidden  SoftwareInput throws an exception when included in the job request
Tests optional hidden SoftwareInput throws an exception when included in the job request
@Test(expectedExceptions = JobProcessingException.class)
    public void processOptionalHiddenParametersThrowExceptionWhenProvided() throws JobProcessingException {
        String message = "Hidden parameters provided in the job request should throw an exception saying they cannot be set.";
        try {
            SoftwareInput input = createInput("hiddeninput", "http://example.com/", null, false, false);
            _genericProcess(List.of(input), mapper.createObjectNode().putNull(input.getKey()));
            fail(message);
        } catch (PermissionException e) {
            fail(message, e);
        }
    }
@ Test ( expectedExceptions = JobProcessingException . class ) public void processOptionalHiddenParametersThrowExceptionWhenProvided ( ) throws JobProcessingException { String message = "Hidden parameters provided in the job request should throw an exception saying they cannot be set." ; try { SoftwareInput input = createInput ( "hiddeninput" , "http://example.com/" , null , false , false ) ; _genericProcess ( List . of ( input ) , mapper . createObjectNode ( ) . putNull ( input . getKey ( ) ) ) ; fail ( message ) ; } catch ( PermissionException e ) { fail ( message , e ) ; } }
Tests optional hidden {@link SoftwareInput} throws an exception when included in the job request
Tests optional hidden { @link SoftwareInput } throws an exception when included in the job request