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();
// 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)