Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 58246 invoked from network); 26 Feb 2010 08:47:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 08:47:45 -0000 Received: (qmail 50599 invoked by uid 500); 26 Feb 2010 08:47:45 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 50572 invoked by uid 500); 26 Feb 2010 08:47:45 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 50564 invoked by uid 99); 26 Feb 2010 08:47:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 08:47:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexey.zavizionov@gmail.com designates 209.85.220.212 as permitted sender) Received: from [209.85.220.212] (HELO mail-fx0-f212.google.com) (209.85.220.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 08:47:38 +0000 Received: by fxm4 with SMTP id 4so7304044fxm.20 for ; Fri, 26 Feb 2010 00:47:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=PqBy+MNFFsFk4GGZsjBd3GqOKseiCQftTjortPUzA9A=; b=GnlOs7ZoG5Lv9pAMsRTR/+eEh7SQKB2yHoX6Lw1w9NLSRLZ/CpyS+GV4fjApwNCi8Q u9dUnVFXYEFypNL7oB63zFdQ9V3ecxknW7mbVKCaETanSnl4bnimw8vbY7B1PcDr7L9Q YAr4fiK4OpWo01cEnpv5J2RJI46qfYExnhg7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=toghe8xkFGcF5WE5zaudcUUgIdDn1q7u8nkYPBbTh1D4ZpGexoNP3EGOhOgplCbwU4 T+sGxk6j7m6Os65QoWJQeb5agMA+bgJDFUWAvBcM64gyn7DtFaaB09emEBfZlBXIyVrm Wx4Rzfa1B0iVZFnYV1K5t4TTnnyXzP8u5q5A0= MIME-Version: 1.0 Received: by 10.223.100.216 with SMTP id z24mr104937fan.5.1267174037167; Fri, 26 Feb 2010 00:47:17 -0800 (PST) In-Reply-To: <5CF494AB-4A17-4292-9FF3-5CE7AA01B68C@alfresco.com> References: <5dad589c1002250902w7652d7cbo67a70ebc9bb96cef@mail.gmail.com> <5CF494AB-4A17-4292-9FF3-5CE7AA01B68C@alfresco.com> From: Alexey Zavizionov Date: Fri, 26 Feb 2010 10:46:56 +0200 Message-ID: <5dad589c1002260046w3d867494h77d7679884f633ea@mail.gmail.com> Subject: Re: TCK should check variables related to CMISUriTemplate To: chemistry-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0015174a10045a9fe204807cf239 --0015174a10045a9fe204807cf239 Content-Type: text/plain; charset=ISO-8859-1 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 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 variables = new HashMap(5); > > variables.put("id", objectId); // <<< to check in > > objectByIdTemplate > > variables.put("includeACL", "true"); // <<< to check in > > objectByIdTemplate > > IRI objectByIdRequest = objectByIdTemplate.generateUri(variables); > > ... > > ================= > > > > Regards, > > Alexey. > > --0015174a10045a9fe204807cf239--