Skip to content

Commit

Permalink
Move to XMLUnit Legacy (#3235)
Browse files Browse the repository at this point in the history
* build: migrate to xmlunit 2.9.1

* feat: opt into xxe protection for test suite
  • Loading branch information
iBotPeaches authored Jul 30, 2023
1 parent e19c44b commit 445da0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ private void compareXmlFiles(String path, ElementQualifier qualifier) throws Bru
Reader control = new FileReader(new File(sTestOrigDir, path));
Reader test = new FileReader(new File(sTestNewDir, path));

XMLUnit.setEnableXXEProtection(true);

if (qualifier == null) {
XMLUnit.setIgnoreWhitespace(true);
XMLUnit.setIgnoreAttributeOrder(true);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ buildscript {
proguard_gradle: 'com.guardsquare:proguard-gradle:7.3.2',
smali : 'com.android.tools.smali:smali:3.0.3',
xmlpull : 'xpp3:xpp3:1.1.4c',
xmlunit : 'xmlunit:xmlunit:1.6',
xmlunit : 'org.xmlunit:xmlunit-legacy:2.9.1',
]
}

Expand Down

0 comments on commit 445da0e

Please sign in to comment.