Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
The following method in AbstractQueryTest is incorrect. Accoring to the spec (section 6.1.1.1), if an option is not supported it should return "false". This method in the TCK instead assumes that "null" will be returned, and as a result does not throw an NotExecutableException.
protected boolean hasDescriptor(String descriptor)
{ return superuser.getRepository().getDescriptor(descriptor) != null; }It should instead be:
protected boolean hasDescriptor(String descriptor)
{ return superuser.getRepository().getDescriptor(descriptor).equals("true"); }This TCK bug causes the following (5) testcases to fail:
XPathPosIndexTest.testDocOrderIndexedNotation()
XPathDocOrderTest.testDocOrderFirstFunction()
XPathDocOrderTest.testDocOrderLastFunction()
XPathDocOrderTest.testDocOrderPositionFunction()
XPathDocOrderTest.testDocOrderPositionIndex()
Attachments
Issue Links
- duplicates
-
JCR-481 Checks for optional features in test cases are wrong
- Closed