Skip to content

Commit

Permalink
fixed Matchers.hasXPath against multiple elements
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoWang420 committed Apr 16, 2021
1 parent bd799d5 commit a5a5760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hamcrest/src/test/java/org/hamcrest/xml/HasXPathTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public Iterator<String> getPrefixes(String namespaceURI) {
);

assertMatches(hasXPath("/books/book/isbn", equalTo("B-ISBN")), multipleBookXml);
assertMatches(hasXPath("/books/book/isbn", equalTo("A-ISBN")), multipleBookXml);
}

@Test public void
Expand Down

0 comments on commit a5a5760

Please sign in to comment.