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 = "processValidNumericValuesGivenForNumericSoftwareParameterProvider")
    public void processValidNumericValuesGivenForNumericSoftwareParameter(String testValue, String expectedValue, String message) {
        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));
            assertTrue(jobParameters.has(param.getKey()), message);
            assertEquals(jobParameters.get(param.getKey()).asText(), expectedValue, message);
        } catch (JobProcessingException e) {
            fail(message, e);
        } catch (IOException e) {
            fail("Error creating the software parameter to test", e);
        }
    }
@ Test ( enabled = true , dataProvider = "processValidNumericValuesGivenForNumericSoftwareParameterProvider" ) public void processValidNumericValuesGivenForNumericSoftwareParameter ( String testValue , String expectedValue , String message ) { 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 ) ) ; assertTrue ( jobParameters . has ( param . getKey ( ) ) , message ) ; assertEquals ( jobParameters . get ( param . getKey ( ) ) . asText ( ) , expectedValue , message ) ; } catch ( JobProcessingException e ) { fail ( message , e ) ; } 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 .