agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Tests job app input validation trims input values
     *
     * @param testUrl padded url to test
     */
Tests job app input validation trims input values
@param testUrl padded url to test
Tests job app input validation trims input values @param testUrl padded url to test
@Test(dataProvider = "processTrimsJsonJobInputsProvider")
    public void processTrimsJsonJobInputs(String testUrl) throws Exception
    {
        String message = "All input values should be trimmed";
        SoftwareInput softwareInput = createInput("testInput", null, null, false, true);
        ObjectNode processedInputs = _genericProcess(List.of(softwareInput), mapper.createObjectNode().put(softwareInput.getKey(), testUrl));
        assertTrue(processedInputs.has(softwareInput.getKey()), message);
        assertEquals(processedInputs.get(softwareInput.getKey()).get(0).asText(), StringUtils.strip(testUrl), message);
    }
@ Test ( dataProvider = "processTrimsJsonJobInputsProvider" ) public void processTrimsJsonJobInputs ( String testUrl ) throws Exception { String message = "All input values should be trimmed" ; SoftwareInput softwareInput = createInput ( "testInput" , null , null , false , true ) ; ObjectNode processedInputs = _genericProcess ( List . of ( softwareInput ) , mapper . createObjectNode ( ) . put ( softwareInput . getKey ( ) , testUrl ) ) ; assertTrue ( processedInputs . has ( softwareInput . getKey ( ) ) , message ) ; assertEquals ( processedInputs . get ( softwareInput . getKey ( ) ) . get ( 0 ) . asText ( ) , StringUtils . strip ( testUrl ) , message ) ; }
Tests job app input validation trims input values
 @param testUrl padded url to test
Tests job app input validation trims input values @param testUrl padded url to test