Search in sources :

Example 1 with CUMarshalServiceImpl

use of edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl in project cu-kfs by CU-CommunityApps.

the class TestPdpMarshal method setUp.

@Before
public void setUp() throws Exception {
    cUMarshalService = new CUMarshalServiceImpl();
    batchDirectoryFile = new File(BATCH_DIRECTORY);
    batchDirectoryFile.mkdir();
}
Also used : File(java.io.File) CUMarshalServiceImpl(edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl) Before(org.junit.Before)

Example 2 with CUMarshalServiceImpl

use of edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl in project cu-kfs by CU-CommunityApps.

the class ConcurEventNotificationListDTOTest method setUp.

@Before
public void setUp() throws Exception {
    cuMarshalService = new CUMarshalServiceImpl();
    xmlFile = new File(EXAMPLE_FILE_NAME);
}
Also used : File(java.io.File) CUMarshalServiceImpl(edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl) Before(org.junit.Before)

Example 3 with CUMarshalServiceImpl

use of edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl 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

CUMarshalServiceImpl (edu.cornell.kfs.sys.service.impl.CUMarshalServiceImpl)3 File (java.io.File)2 Before (org.junit.Before)2 JAXBXmlBatchInputFileTypeBase (edu.cornell.kfs.sys.batch.JAXBXmlBatchInputFileTypeBase)1