(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Tue, 28 Mar 2006 13:52:49 +0000 (13:52 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Tue, 28 Mar 2006 13:52:49 +0000 (13:52 +0000)
support/test/org/wamblee/xml/XmlUtils.java

index 7d0fb123c1c50a4f79dd252a4de7efd53a102cc6..638d64e4e98e79e789893221acac89fb30c0c39e 100644 (file)
@@ -96,7 +96,7 @@ public final class XmlUtils {
         List<Attribute> actualAttrs = aActual.attributes();
         Collections.sort(actualAttrs, new AttributeComparator());
 
-        TestCase.assertEquals(aMsg + "/count(@*)", expectedAttrs.size(),
+        TestCase.assertEquals("count(" + aMsg + "/@*)", expectedAttrs.size(),
                 actualAttrs.size());
         for (int i = 0; i < expectedAttrs.size(); i++) {
             String msg = aMsg + "/@" + expectedAttrs.get(i).getName();
@@ -106,7 +106,7 @@ public final class XmlUtils {
         // Nested elements.
         List<Element> expectedElems = aExpected.elements();
         List<Element> actualElems = aActual.elements();
-        TestCase.assertEquals(aMsg + "/count(*)", expectedElems.size(),
+        TestCase.assertEquals("count(" + aMsg + "/*)", expectedElems.size(),
                 actualElems.size());
         // determine the how-manyth element of the given name we are at.
         // Maps element name to the last used index (or null if not yet used)