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:
parent
d9e04ec5b6
commit
9df929963f
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue