agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests job app input validation on jobs submitted as json
     *
     * @param jobInputs test validation of multiple inputs in a job request
     * @param message the message to assert for a failed test
     */
Tests job app input validation on jobs submitted as json
@param jobInputs test validation of multiple inputs in a job request
@param message the message to assert for a failed test
Tests job app input validation on jobs submitted as json @param jobInputs test validation of multiple inputs in a job request @param message the message to assert for a failed test
@Test(dataProvider = "processJsonJobInputsProvider")
    public void processJsonJobInputs(ObjectNode jobInputs, String message)
    {
        try {
            SoftwareInput softwareInput = createInput("testInput", null, null, false, true);
            ObjectNode processedInputs = _genericProcess(List.of(softwareInput), jobInputs);
            assertTrue(processedInputs.has(softwareInput.getKey()), message);
            assertEquals(processedInputs.get(softwareInput.getKey()).get(0).asText(), jobInputs.get(softwareInput.getKey()).asText(), message);
        } catch (JobProcessingException e) {
            fail(message, e);
        } catch (PermissionException e) {
            fail("Failed to setup software input test", e);
        }
    }
@ Test ( dataProvider = "processJsonJobInputsProvider" ) public void processJsonJobInputs ( ObjectNode jobInputs , String message ) { try { SoftwareInput softwareInput = createInput ( "testInput" , null , null , false , true ) ; ObjectNode processedInputs = _genericProcess ( List . of ( softwareInput ) , jobInputs ) ; assertTrue ( processedInputs . has ( softwareInput . getKey ( ) ) , message ) ; assertEquals ( processedInputs . get ( softwareInput . getKey ( ) ) . get ( 0 ) . asText ( ) , jobInputs . get ( softwareInput . getKey ( ) ) . asText ( ) , message ) ; } catch ( JobProcessingException e ) { fail ( message , e ) ; } catch ( PermissionException e ) { fail ( "Failed to setup software input test" , e ) ; } }
Tests job app input validation on jobs submitted as json
 @param jobInputs test validation of multiple inputs in a job request
 @param message the message to assert for a failed test
Tests job app input validation on jobs submitted as json @param jobInputs test validation of multiple inputs in a job request @param message the message to assert for a failed test