Skip to content

Commit

Permalink
Made numAttachment and extract expectedCount failure language more de…
Browse files Browse the repository at this point in the history
…tailed
  • Loading branch information
Sam Bishop authored and sambish5 committed Oct 12, 2022
1 parent c4ac11a commit 7663f03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/emissary/test/core/ExtractionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -362,23 +362,23 @@ public void checkAttachmentAndExtractedRecordCount(String resourceName, Element
failResult += "<numAttachments> missing int between tags. ";
} else {
if (!attExpected && (attFoundCount > 0)) {
failResult += "<numAttachments> missing from file, but attachments found: <" + attFoundCount + ">. ";
failResult += "<numAttachments> missing from answer file, but attachments found: <" + attFoundCount + ">. ";
} else {
if (attExpectedCount != attFoundCount) {
failResult +=
"Number of attachments expected:<" + attExpectedCount + "> but was: <" + attFoundCount + ">. ";
"<numAttachments> expected:<" + attExpectedCount + "> but found: <" + attFoundCount + "> in answer file. ";
}
}
}
if (!missingExtCount) {
failResult += "<extractCount> missing int between tags. ";
} else {
if (!extExpected && (extFoundCount > 0)) {
failResult += "<extractCount> missing from file, but extracts found: <" + extFoundCount + ">. ";
failResult += "<extractCount> missing from answer file, but extracts found: <" + extFoundCount + ">. ";
} else {
if (extExpectedCount != extFoundCount) {
failResult += "Number of extracted children expected:<" + extExpectedCount + "> but was: <"
+ extFoundCount + ">. ";
failResult += "<extractCount> expected:<" + extExpectedCount + "> but found: <"
+ extFoundCount + "> in answer file. ";
}
}
}
Expand Down

0 comments on commit 7663f03

Please sign in to comment.