agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestParameterProcessorIT.java
/**
     * Tests validaton of numeric values when processing numeric {@link SoftwareParameter} supplied in job request.
     */
Tests validaton of numeric values when processing numeric  SoftwareParameter supplied in job request.
Tests validaton of numeric values when processing numeric SoftwareParameter supplied in job request .
@Test(enabled = true, dataProvider = "processThrowsExceptionWhenNonNumericValueGivenForNumericSoftwareParameterProvider", expectedExceptions = JobProcessingException.class)
    public void processThrowsExceptionWhenNonNumericValueGivenForNumericSoftwareParameter(String testValue, String message) throws JobProcessingException {
        Long defaultValue = 2L;
        try {
            SoftwareParameter param = createParameter("testparam", SoftwareParameterType.number, defaultValue, null, true, true);
            ObjectNode jobParameters = _genericProcess(List.of(param), param.getKey(), mapper.createObjectNode().put(param.getKey(), testValue));
            fail(message);
        } catch (IOException e) {
            fail("Error creating the software parameter to test", e);
        }
    }
@ Test ( enabled = true , dataProvider = "processThrowsExceptionWhenNonNumericValueGivenForNumericSoftwareParameterProvider" , expectedExceptions = JobProcessingException . class ) public void processThrowsExceptionWhenNonNumericValueGivenForNumericSoftwareParameter ( String testValue , String message ) throws JobProcessingException { Long defaultValue = 2L ; try { SoftwareParameter param = createParameter ( "testparam" , SoftwareParameterType . number , defaultValue , null , true , true ) ; ObjectNode jobParameters = _genericProcess ( List . of ( param ) , param . getKey ( ) , mapper . createObjectNode ( ) . put ( param . getKey ( ) , testValue ) ) ; fail ( message ) ; } catch ( IOException e ) { fail ( "Error creating the software parameter to test" , e ) ; } }
Tests validaton of numeric values when processing numeric {@link SoftwareParameter} supplied in job request.
Tests validaton of numeric values when processing numeric { @link SoftwareParameter } supplied in job request .