Skip to content

Commit

Permalink
[ignore] assert-count & assert-empty
Browse files Browse the repository at this point in the history
svn path=/trunk/eXist/; revision=17710
  • Loading branch information
shabanovd committed Nov 24, 2012
1 parent 2b3e499 commit 2f792a5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/src/org/exist/xquery/xqts/QT3TS_case.java
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,17 @@ private void checkResults(String type, NodeList expected, Sequence result) throw
Assert.assertTrue("not implemented 'assert-permutation'", false);

} else if ("assert-count".equals(type)) {
Assert.assertTrue("not implemented 'assert-count'", false);
if (expected.getLength() == 1 && "1".equals( expected.item(0).getNodeValue()) && result != null) {
return;
}
Assert.assertEquals(
expected.item(0).getNodeValue(),
String.valueOf( result.getItemCount() )
);

} else if ("assert-empty".equals(type)) {
Assert.assertTrue("not implemented 'assert-empty'", false);

Assert.assertTrue(result.isEmpty());

} else if ("assert-xml".equals(type)) {
for(int i = 0; i < expected.getLength(); i++) {
Expand Down

0 comments on commit 2f792a5

Please sign in to comment.