agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests job input processing respects min cardinality when a single string input is provided and throws a
     * {@link JobProcessingException}.
     */
Tests job input processing respects min cardinality when a single string input is provided and throws a
JobProcessingException.
Tests job input processing respects min cardinality when a single string input is provided and throws a JobProcessingException .
@Test(dataProvider = "processSingleInputsThrowExceptionWhenMinCardinalityGreaterThanOneProvider", expectedExceptions = JobProcessingException.class)
    public void processSingleInputsThrowExceptionWhenMinCardinalityGreaterThanOne(ObjectNode jobInputs) throws JobProcessingException
    {
        try {
            SoftwareInput softwareInput = createInput("testInput", null, null, false, true);
            softwareInput.setMinCardinality(2);
            softwareInput.setMaxCardinality(-1);
            _genericProcess(List.of(softwareInput), jobInputs);
            fail("Single input value for sofware input with min cardinality greater than 1 should throw JobProcessingException");
        } catch (PermissionException e) {
            fail("Failed to setup software input test", e);
        }
    }
@ Test ( dataProvider = "processSingleInputsThrowExceptionWhenMinCardinalityGreaterThanOneProvider" , expectedExceptions = JobProcessingException . class ) public void processSingleInputsThrowExceptionWhenMinCardinalityGreaterThanOne ( ObjectNode jobInputs ) throws JobProcessingException { try { SoftwareInput softwareInput = createInput ( "testInput" , null , null , false , true ) ; softwareInput . setMinCardinality ( 2 ) ; softwareInput . setMaxCardinality ( - 1 ) ; _genericProcess ( List . of ( softwareInput ) , jobInputs ) ; fail ( "Single input value for sofware input with min cardinality greater than 1 should throw JobProcessingException" ) ; } catch ( PermissionException e ) { fail ( "Failed to setup software input test" , e ) ; } }
Tests job input processing respects min cardinality when a single string input is provided and throws a
 {@link JobProcessingException}.
Tests job input processing respects min cardinality when a single string input is provided and throws a { @link JobProcessingException } .