Skip to content

Commit a5a5760

Browse files
committed
fixed Matchers.hasXPath against multiple elements
1 parent bd799d5 commit a5a5760

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hamcrest/src/test/java/org/hamcrest/xml/HasXPathTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public Iterator<String> getPrefixes(String namespaceURI) {
8989
);
9090

9191
assertMatches(hasXPath("/books/book/isbn", equalTo("B-ISBN")), multipleBookXml);
92+
assertMatches(hasXPath("/books/book/isbn", equalTo("A-ISBN")), multipleBookXml);
9293
}
9394

9495
@Test public void

0 commit comments

Comments
 (0)