agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests required visible {@link SoftwareInput} throws exception when multiple blank values are provided and
     * cardinality is greater than zero.
     */
Tests required visible  SoftwareInput throws exception when multiple blank values are provided and
cardinality is greater than zero.
Tests required visible SoftwareInput throws exception when multiple blank values are provided and cardinality is greater than zero .
@Test(dataProvider = "processRequiredVisibleParametersThrowsExceptionWhenMultipleBlankValueAndCardinalityNotZeroProvider", expectedExceptions = JobProcessingException.class)
    public void processRequiredVisibleParametersThrowsExceptionWhenMultipleBlankValueAndCardinalityNotZero(int minCardinality, int maxCardinality, ObjectNode testInputs) throws JobProcessingException {
        String message = "Null input value in job request should throw an exception when minCard = " + minCardinality + " and maxCard = " + maxCardinality;
        try {
            SoftwareInput input = createInput("hiddeninput", "http://example.com/", null, true, true);
            input.setMinCardinality(minCardinality);
            input.setMaxCardinality(maxCardinality);
            _genericProcess(List.of(input), testInputs);
            fail(message);
        } catch (PermissionException e) {
            fail(message, e);
        }
    }
@ Test ( dataProvider = "processRequiredVisibleParametersThrowsExceptionWhenMultipleBlankValueAndCardinalityNotZeroProvider" , expectedExceptions = JobProcessingException . class ) public void processRequiredVisibleParametersThrowsExceptionWhenMultipleBlankValueAndCardinalityNotZero ( int minCardinality , int maxCardinality , ObjectNode testInputs ) throws JobProcessingException { String message = "Null input value in job request should throw an exception when minCard = " + minCardinality + " and maxCard = " + maxCardinality ; try { SoftwareInput input = createInput ( "hiddeninput" , "http://example.com/" , null , true , true ) ; input . setMinCardinality ( minCardinality ) ; input . setMaxCardinality ( maxCardinality ) ; _genericProcess ( List . of ( input ) , testInputs ) ; fail ( message ) ; } catch ( PermissionException e ) { fail ( message , e ) ; } }
Tests required visible {@link SoftwareInput} throws exception when multiple blank values are provided and
 cardinality is greater than zero.
Tests required visible { @link SoftwareInput } throws exception when multiple blank values are provided and cardinality is greater than zero .