-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KFSPTS-30631 Fix handling of bad create-acct-doc create dates (#1539)
- Loading branch information
Showing
3 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
src/test/resources/edu/cornell/kfs/fp/batch/xml/single-di-invalid-create-date-test.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<DocumentWrapper> | ||
<CreateDate>January fourth, twenty twenty-four</CreateDate> | ||
<ReportEmail>abc123@cornell.edu</ReportEmail> | ||
<Overview>Example XML file</Overview> | ||
<DocumentList> | ||
<Document> | ||
<Index>1</Index> | ||
<DocumentType>DI</DocumentType> | ||
<Description>Test Document</Description> | ||
<Explanation>This is only a test document!</Explanation> | ||
<OrganizationDocumentNumber>ABCD1234</OrganizationDocumentNumber> | ||
<SourceAccountingLineList> | ||
<Accounting> | ||
<coa_cd>IT</coa_cd> | ||
<account_nbr>R504700</account_nbr> | ||
<sub_account_nbr></sub_account_nbr> | ||
<object_cd>2640</object_cd> | ||
<sub_object_cd></sub_object_cd> | ||
<project></project> | ||
<org_ref_id></org_ref_id> | ||
<line_description></line_description> | ||
<amount>100.00</amount> | ||
</Accounting> | ||
<Accounting> | ||
<coa_cd>IT</coa_cd> | ||
<account_nbr>1000718</account_nbr> | ||
<sub_account_nbr></sub_account_nbr> | ||
<object_cd>4000</object_cd> | ||
<sub_object_cd></sub_object_cd> | ||
<project></project> | ||
<org_ref_id></org_ref_id> | ||
<line_description></line_description> | ||
<amount>50</amount> | ||
</Accounting> | ||
</SourceAccountingLineList> | ||
<TargetAccountingLineList> | ||
<Accounting> | ||
<coa_cd>IT</coa_cd> | ||
<account_nbr>R504706</account_nbr> | ||
<sub_account_nbr></sub_account_nbr> | ||
<object_cd>2640</object_cd> | ||
<sub_object_cd></sub_object_cd> | ||
<project></project> | ||
<org_ref_id></org_ref_id> | ||
<line_description></line_description> | ||
<amount>100.00</amount> | ||
</Accounting> | ||
<Accounting> | ||
<coa_cd>IT</coa_cd> | ||
<account_nbr>1000710</account_nbr> | ||
<sub_account_nbr></sub_account_nbr> | ||
<object_cd>4000</object_cd> | ||
<sub_object_cd></sub_object_cd> | ||
<project></project> | ||
<org_ref_id></org_ref_id> | ||
<line_description></line_description> | ||
<amount>50</amount> | ||
</Accounting> | ||
</TargetAccountingLineList> | ||
<NoteList> | ||
<Note> | ||
<Description>A fun testing note</Description> | ||
</Note> | ||
<Note> | ||
<Description>Another note</Description> | ||
</Note> | ||
</NoteList> | ||
<AdhocRecipientList> | ||
<Recipient> | ||
<Netid>jdh34</Netid> | ||
<ActionRequested>Approve</ActionRequested> | ||
</Recipient> | ||
<Recipient> | ||
<Netid>se12</Netid> | ||
<ActionRequested>FYI</ActionRequested> | ||
</Recipient> | ||
<Recipient> | ||
<Netid>ccs1</Netid> | ||
<ActionRequested>Complete</ActionRequested> | ||
</Recipient> | ||
<Recipient> | ||
<Netid>nkk4</Netid> | ||
<ActionRequested>Acknowledge</ActionRequested> | ||
</Recipient> | ||
</AdhocRecipientList> | ||
<BackupDocumentLinks> | ||
<BackupLink> | ||
<Link>http://www.cornell.edu/index.html</Link> | ||
<Description>Cornell index page</Description> | ||
<FileName>index.html</FileName> | ||
<CredentialGroupCode>TESTGRP</CredentialGroupCode> | ||
</BackupLink> | ||
<BackupLink> | ||
<Link>https://www.dfa.cornell.edu/index.cfm</Link> | ||
<Description>DFA index page</Description> | ||
<FileName>index.cfm</FileName> | ||
<CredentialGroupCode>TESTGRP</CredentialGroupCode> | ||
</BackupLink> | ||
</BackupDocumentLinks> | ||
</Document> | ||
</DocumentList> | ||
</DocumentWrapper> |