From 9df929963f83c209a36a64c776a679371855cc67 Mon Sep 17 00:00:00 2001 From: stleary Date: Sun, 19 Apr 2015 17:10:47 -0500 Subject: [PATCH] added a trivial XML string compare method - still needs work --- Util.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Util.java b/Util.java index 71f6c0d..53ec402 100644 --- a/Util.java +++ b/Util.java @@ -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)); + + } + }