X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=trunk%2Fsupport%2Ftest%2Forg%2Fwamblee%2Fxml%2FXmlUtils.java;h=638d64e4e98e79e789893221acac89fb30c0c39e;hb=1fb73f6ab8a441e2a11827306210061553004af8;hp=7d0fb123c1c50a4f79dd252a4de7efd53a102cc6;hpb=c06647db97c213d40222bf633d696527f18a529c;p=utils diff --git a/trunk/support/test/org/wamblee/xml/XmlUtils.java b/trunk/support/test/org/wamblee/xml/XmlUtils.java index 7d0fb123..638d64e4 100644 --- a/trunk/support/test/org/wamblee/xml/XmlUtils.java +++ b/trunk/support/test/org/wamblee/xml/XmlUtils.java @@ -96,7 +96,7 @@ public final class XmlUtils { List 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 expectedElems = aExpected.elements(); List 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)