mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
added a trivial XML string compare method - still needs work
This commit is contained in:
parent
d9e04ec5b6
commit
9df929963f
@ -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));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user