Search in sources :

Example 1 with VendorBatchCsvInputFileType

use of edu.cornell.kfs.vnd.batch.VendorBatchCsvInputFileType in project cu-kfs by CU-CommunityApps.

the class CuBatchInputFileServiceImplTest method testIllegalArguments.

/*
     * test several potential IllegalArgumentException
     */
public void testIllegalArguments() {
    runTestIllegalArgument();
    user = new PersonImpl();
    runTestIllegalArgument();
    batchInputFileType = new VendorBatchCsvInputFileType();
    runTestIllegalArgument();
    fileContents = new InputStream() {

        @Override
        public int read() throws IOException {
            return 0;
        }
    };
    // Only allow alphanumeric
    fileUserIdentifier = " 123.abc";
    runTestIllegalArgument();
}
Also used : PersonImpl(org.kuali.rice.kim.impl.identity.PersonImpl) FileInputStream(java.io.FileInputStream) InputStream(java.io.InputStream) VendorBatchCsvInputFileType(edu.cornell.kfs.vnd.batch.VendorBatchCsvInputFileType) IOException(java.io.IOException)

Aggregations

VendorBatchCsvInputFileType (edu.cornell.kfs.vnd.batch.VendorBatchCsvInputFileType)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 PersonImpl (org.kuali.rice.kim.impl.identity.PersonImpl)1