chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: TCK test for getContentStream() checks for null instead of exception
Date Thu, 11 Oct 2012 08:26:24 GMT
 Hi Sagara,

 That's correct. The OpenCMIS high-level API catches the constraint 
 exception in this case and returns null. Therefore, the TCK tests for 
 null and not for the exception.
 The low-level API still throws the constraint exception, though.


 Florian


> Hi all,
>
> The CMIS specification says getContentStream() MUST throw a 
> constraint
> exception if the object specified by objectId does NOT have a content
> stream or rendition stream[1]. However in the TCK[2] it asserts the 
> return
> value of getContentStream() for null. Is this correct?
>
> [1] -
> 
> http://docs.oasis-open.org/cmis/CMIS/v1.0/errata-01/os/cmis-spec-v1.0-errata-01-os-complete.html#_Toc243905458
> [2] -
> 
> https://svn.apache.org/repos/asf/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java
>
> Thanks,
> Sagara.


Mime
View raw message