jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: JSR-170 TCK use of Repository.getDescriptor
Date Fri, 14 Jul 2006 12:27:37 GMT
Hi David,

thanks a lot for reporting this issue. you are right, these kind of 
checks are wrong in the test cases. I've created a jira issue: 
http://issues.apache.org/jira/browse/JCR-481

regards
  marcel

David Sanders wrote:
> 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")) 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 

Mime
View raw message