agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Generate different forms of single input value.
     * @return test cases
     */
Generate different forms of single input value.
@return test cases
Generate different forms of single input value . @return test cases
@DataProvider
    protected Object[][] processSingleInputsThrowExceptionWhenMinCardinalityGreaterThanOneProvider() {
        String key = "testInput";
        String testUrl = "https://example.com/index.html";
        ObjectNode singleValueObject = mapper.createObjectNode().put(key, testUrl);
        ObjectNode singleValueArrayObject = mapper.createObjectNode();
        singleValueArrayObject.putArray(key).add(testUrl);
        return new Object[][] {
                { singleValueArrayObject },
                { singleValueObject },
        };
    }
@ DataProvider protected Object [ ] [ ] processSingleInputsThrowExceptionWhenMinCardinalityGreaterThanOneProvider ( ) { String key = "testInput" ; String testUrl = "https://example.com/index.html" ; ObjectNode singleValueObject = mapper . createObjectNode ( ) . put ( key , testUrl ) ; ObjectNode singleValueArrayObject = mapper . createObjectNode ( ) ; singleValueArrayObject . putArray ( key ) . add ( testUrl ) ; return new Object [ ] [ ] { { singleValueArrayObject } , { singleValueObject } , } ; }
Generate different forms of single input value.
Generate different forms of single input value .