Search in sources :

Example 1 with JAXBXmlBatchInputFileTypeBase

use of edu.cornell.kfs.sys.batch.JAXBXmlBatchInputFileTypeBase in project cu-kfs by CU-CommunityApps.

the class CreateAccountingDocumentServiceImplTest method buildAccountingXmlDocumentInputFileType.

private JAXBXmlBatchInputFileTypeBase buildAccountingXmlDocumentInputFileType() throws Exception {
    JAXBXmlBatchInputFileTypeBase inputFileType = new JAXBXmlBatchInputFileTypeBase();
    inputFileType.setDateTimeService(buildMockDateTimeService());
    inputFileType.setCuMarshalService(new CUMarshalServiceImpl());
    inputFileType.setPojoClass(AccountingXmlDocumentListWrapper.class);
    inputFileType.setFileTypeIdentifier("accountingXmlDocumentFileType");
    inputFileType.setFileNamePrefix("accountingXmlDocument_");
    inputFileType.setTitleKey("accountingXmlDocument");
    inputFileType.setFileExtension(StringUtils.substringAfter(CuFPConstants.XML_FILE_EXTENSION, KFSConstants.DELIMITER));
    inputFileType.setDirectoryPath(TARGET_TEST_FILE_PATH);
    return inputFileType;
}
Also used : JAXBXmlBatchInputFileTypeBase(edu.cornell.kfs.sys.batch.JAXBXmlBatchInputFileTypeBase) CUMarshalServiceImpl(edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl)

Aggregations

JAXBXmlBatchInputFileTypeBase (edu.cornell.kfs.sys.batch.JAXBXmlBatchInputFileTypeBase)1 CUMarshalServiceImpl (edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl)1