agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests required visible {@link SoftwareInput} allows null value when min cardinality is 0
     */
Tests required visible  SoftwareInput allows null value when min cardinality is 0
Tests required visible SoftwareInput allows null value when min cardinality is 0
@Test(dataProvider = "processRequiredVisibleParametersAllowEmptyValueAndExcludeFromJobProcessedParametersProvider")
    public void processRequiredVisibleParametersAllowEmptyValueAndExcludeFromJobProcessedParameters(int maxCardinality, ObjectNode testInput) {
        String message = "Null input value in job request should be allowed and input excluded from processed job inputs when minCard = 0 and maxCard = " + maxCardinality;
        try {
            SoftwareInput input = createInput("testInput", "http://example.com/", null, true, true);
            input.setMinCardinality(0);
            input.setMaxCardinality(maxCardinality);
            ObjectNode jobInputs = _genericProcess(List.of(input), testInput);
            assertFalse(jobInputs.has(input.getKey()), message);
        } catch (PermissionException|JobProcessingException e) {
            fail(message, e);
        }
    }
@ Test ( dataProvider = "processRequiredVisibleParametersAllowEmptyValueAndExcludeFromJobProcessedParametersProvider" ) public void processRequiredVisibleParametersAllowEmptyValueAndExcludeFromJobProcessedParameters ( int maxCardinality , ObjectNode testInput ) { String message = "Null input value in job request should be allowed and input excluded from processed job inputs when minCard = 0 and maxCard = " + maxCardinality ; try { SoftwareInput input = createInput ( "testInput" , "http://example.com/" , null , true , true ) ; input . setMinCardinality ( 0 ) ; input . setMaxCardinality ( maxCardinality ) ; ObjectNode jobInputs = _genericProcess ( List . of ( input ) , testInput ) ; assertFalse ( jobInputs . has ( input . getKey ( ) ) , message ) ; } catch ( PermissionException | JobProcessingException e ) { fail ( message , e ) ; } }
Tests required visible {@link SoftwareInput} allows null value when min cardinality is 0
Tests required visible { @link SoftwareInput } allows null value when min cardinality is 0