chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Zavizionov <alexey.zavizio...@gmail.com>
Subject Re: TCK should check variables related to CMISUriTemplate
Date Fri, 26 Feb 2010 08:46:56 GMT
The 2) should be at least, but the 1) would be great!

Here the issue https://issues.apache.org/jira/browse/CMIS-132

On Thu, Feb 25, 2010 at 7:58 PM, David Caruana
<david.caruana@alfresco.com>wrote:

> Do you mean 1) test that the URI template has all variables as stated in
> the spec? or 2) that values should only be set for variables that exist
> within the URI template.
>
> It's my understanding that the spec requires all variables to specified in
> the URI template. So, implementing 1) makes sense.
>
> Dave
>
> On 25 Feb 2010, at 17:02, Alexey Zavizionov wrote:
>
> > Hello!
> >
> > The TCK tests should check that uri templates have appropriate variables.
> >
> > === related code ===
> > ...
> >        CMISUriTemplate objectByIdTemplate =
> > client.getObjectByIdUriTemplate(client.getWorkspace());
> >        Map<String, Object> variables = new HashMap<String, Object>(5);
> >        variables.put("id", objectId);                 // <<< to check in
> > objectByIdTemplate
> >        variables.put("includeACL", "true");          // <<< to check in
> > objectByIdTemplate
> >        IRI objectByIdRequest = objectByIdTemplate.generateUri(variables);
> > ...
> > =================
> >
> > Regards,
> > Alexey.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message