Skip to content

Commit

Permalink
Rebase off of master
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bishop committed Aug 19, 2022
1 parent 43787ff commit 4419433
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/test/java/emissary/test/core/TestExtractionTest.java
Expand Up @@ -95,7 +95,8 @@ public void testAttachmentAndExtractedRecordCountFailure() throws JDOMException,
extCountChild.setText("0");

Element finalParent = parent;
assertThrows(AssertionError.class, () -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));
assertThrows(AssertionError.class,
() -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));

numAttChild.setText("1");
extCountChild.setText("1");
Expand Down Expand Up @@ -163,7 +164,8 @@ public void testNumAttachmentTagMissing() throws JDOMException, IOException {
parent.removeChild("numAttachments");

Element finalParent = parent;
assertThrows(AssertionError.class, () -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));
assertThrows(AssertionError.class,
() -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));

parent.addContent(indexNumAtt, numAttChild);
}
Expand All @@ -190,7 +192,8 @@ public void testAttachmentNumNotDefined() throws JDOMException, IOException {
numAttChild.setText("");

Element finalParent = parent;
assertThrows(AssertionError.class, () -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));
assertThrows(AssertionError.class,
() -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));

numAttChild.setText("1");
}
Expand Down Expand Up @@ -218,7 +221,8 @@ public void testAttCountFoundNotEqualExpected() throws JDOMException, IOExceptio
parent.removeChild("att1");

Element finalParent = parent;
assertThrows(AssertionError.class, () -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));
assertThrows(AssertionError.class,
() -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));

parent.addContent(indexAtt, att);
}
Expand Down Expand Up @@ -246,7 +250,8 @@ public void testExtractCountTagMissing() throws JDOMException, IOException {
parent.removeChild("extractCount");

Element finalParent = parent;
assertThrows(AssertionError.class, () -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));
assertThrows(AssertionError.class,
() -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));

parent.addContent(indexExtCount, extCountChild);
}
Expand All @@ -273,7 +278,8 @@ public void testExtractCountNotDefined() throws JDOMException, IOException {
extCountChild.setText("");

Element finalParent = parent;
assertThrows(AssertionError.class, () -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));
assertThrows(AssertionError.class,
() -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));

extCountChild.setText("1");
}
Expand Down Expand Up @@ -301,7 +307,8 @@ public void testExtCountFoundNotEqualExpected() throws JDOMException, IOExceptio
parent.removeChild("extract1");

Element finalParent = parent;
assertThrows(AssertionError.class, () -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));
assertThrows(AssertionError.class,
() -> test.checkAttachmentAndExtractedRecordCount(resourceName, finalParent, "TestAttachmentAndExtractedRecordCountFailure"));

parent.addContent(indexExt, ext);
}
Expand Down

0 comments on commit 4419433

Please sign in to comment.