aapt2: don't init XMLUnit if not using the full xml diff

This commit is contained in:
Connor Tumbleson 2018-03-05 10:29:44 -05:00
parent 8ae5d529cb
commit 722870e6b9

View File

@ -115,9 +115,8 @@ public class BaseTest {
Reader control = new FileReader(new File(sTestOrigDir, path)); Reader control = new FileReader(new File(sTestOrigDir, path));
Reader test = new FileReader(new File(sTestNewDir, path)); Reader test = new FileReader(new File(sTestNewDir, path));
XMLUnit.setIgnoreWhitespace(true);
if (qualifier == null) { if (qualifier == null) {
XMLUnit.setIgnoreWhitespace(true);
assertXMLEqual(control, test); assertXMLEqual(control, test);
return; return;
} }