1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

added a trivial XML string compare method - still needs work

This commit is contained in:
stleary 2015-04-19 17:10:47 -05:00
parent d9e04ec5b6
commit 9df929963f

View file

@ -83,4 +83,13 @@ public class Util {
}
}
public static void compareXML(String aXmlStr, String bXmlStr) {
// TODO For simple tests this may be adequate, but it won't work for
// elements with multiple attributes and possibly other cases as well.
// Should use XMLUnit or similar.
assertTrue("expected equal XML strings \naXmlStr: "+
aXmlStr+ "\nbXmlStr: " +bXmlStr, aXmlStr.equals(bXmlStr));
}
}