Move to XMLUnit Legacy (#3235)

* build: migrate to xmlunit 2.9.1

* feat: opt into xxe protection for test suite
This commit is contained in:
Connor Tumbleson 2023-07-30 13:48:26 -04:00 committed by GitHub
parent e19c44b1b1
commit 445da0e658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -115,6 +115,8 @@ public class BaseTest {
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);

View File

@ -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',
]
}