From 7663f035341bc6ab993bf29b4428053283387197 Mon Sep 17 00:00:00 2001 From: Sam Bishop Date: Fri, 26 Aug 2022 11:19:02 -0400 Subject: [PATCH] Made numAttachment and extract expectedCount failure language more detailed --- src/test/java/emissary/test/core/ExtractionTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/emissary/test/core/ExtractionTest.java b/src/test/java/emissary/test/core/ExtractionTest.java index fe62e0a87c..ec312cb39d 100644 --- a/src/test/java/emissary/test/core/ExtractionTest.java +++ b/src/test/java/emissary/test/core/ExtractionTest.java @@ -362,11 +362,11 @@ public void checkAttachmentAndExtractedRecordCount(String resourceName, Element failResult += " missing int between tags. "; } else { if (!attExpected && (attFoundCount > 0)) { - failResult += " missing from file, but attachments found: <" + attFoundCount + ">. "; + failResult += " missing from answer file, but attachments found: <" + attFoundCount + ">. "; } else { if (attExpectedCount != attFoundCount) { failResult += - "Number of attachments expected:<" + attExpectedCount + "> but was: <" + attFoundCount + ">. "; + " expected:<" + attExpectedCount + "> but found: <" + attFoundCount + "> in answer file. "; } } } @@ -374,11 +374,11 @@ public void checkAttachmentAndExtractedRecordCount(String resourceName, Element failResult += " missing int between tags. "; } else { if (!extExpected && (extFoundCount > 0)) { - failResult += " missing from file, but extracts found: <" + extFoundCount + ">. "; + failResult += " missing from answer file, but extracts found: <" + extFoundCount + ">. "; } else { if (extExpectedCount != extFoundCount) { - failResult += "Number of extracted children expected:<" + extExpectedCount + "> but was: <" - + extFoundCount + ">. "; + failResult += " expected:<" + extExpectedCount + "> but found: <" + + extFoundCount + "> in answer file. "; } } }