agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestInputProcessorIT.java
/**
     * Generates test input objects that will fail the {@link SoftwareInput#getValidator()}.
     * @return test cases
     */
Generates test input objects that will fail the  SoftwareInput#getValidator().
@return test cases
Generates test input objects that will fail the SoftwareInput#getValidator () . @return test cases
@DataProvider
    protected Object[][] processThrowsExceptionForInputNotMatchingValidatorProvider() {
        String key = "testInput";
        String testUrl = "agave://example.com/index.html";
        String testUrl2 = "https://example.com/index.html";
        ObjectNode singleInputValue = mapper.createObjectNode().put(key, testUrl);
        ObjectNode singleInputArrayValue = mapper.createObjectNode();
        singleInputArrayValue.putArray(key).add(testUrl);
        ObjectNode multipleInputArrayValue = mapper.createObjectNode();
        multipleInputArrayValue.putArray(key).add(testUrl2).add(testUrl);
        return new Object[][]{
                { singleInputValue },
                { singleInputArrayValue },
                { multipleInputArrayValue },
        };
    }
@ DataProvider protected Object [ ] [ ] processThrowsExceptionForInputNotMatchingValidatorProvider ( ) { String key = "testInput" ; String testUrl = "agave://example.com/index.html" ; String testUrl2 = "https://example.com/index.html" ; ObjectNode singleInputValue = mapper . createObjectNode ( ) . put ( key , testUrl ) ; ObjectNode singleInputArrayValue = mapper . createObjectNode ( ) ; singleInputArrayValue . putArray ( key ) . add ( testUrl ) ; ObjectNode multipleInputArrayValue = mapper . createObjectNode ( ) ; multipleInputArrayValue . putArray ( key ) . add ( testUrl2 ) . add ( testUrl ) ; return new Object [ ] [ ] { { singleInputValue } , { singleInputArrayValue } , { multipleInputArrayValue } , } ; }
Generates test input objects that will fail the {@link SoftwareInput#getValidator()}.
Generates test input objects that will fail the { @link SoftwareInput#getValidator () } .