[ http://issues.apache.org/jira/browse/JCR-481?page=all ]
Marcel Reutegger resolved JCR-481.
----------------------------------
Resolution: Fixed
Fixed in revision: 421894
> Checks for optional features in test cases are wrong
> ----------------------------------------------------
>
> Key: JCR-481
> URL: http://issues.apache.org/jira/browse/JCR-481
> Project: Jackrabbit
> Issue Type: Bug
> Components: test
> Reporter: Marcel Reutegger
> Assigned To: Marcel Reutegger
>
> Reported by David Sanders:
> The TCK for JSR-170 Final Release
> (http://jcp.org/aboutJava/communityprocess/final/jsr170/index.html)
> checks for level 2 and optional features by comparing
> Repository.getDescriptor to null. According to the
> spec and javadoc, getDescriptor must return either
> "true" or "false" for the "capability" keys.
> Example in AbsractJCRest.java:
> // setup custom namespaces
> if
> (helper.getRepository().getDescriptor(Repository.LEVEL_2_SUPPORTED)
> != null) {
> NamespaceRegistry nsReg =
> superuser.getWorkspace().getNamespaceRegistry();
> I think the above if statement should be:
> if
> (helper.getRepository().getDescriptor(Repository.LEVEL_2_SUPPORTED)
> .equals("true"))
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira