chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (CMIS-714) Update Smoke Test: always fail with empty properties
Date Thu, 29 Aug 2013 11:50:00 GMT

     [ https://issues.apache.org/jira/browse/CMIS-714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Müller resolved CMIS-714.
---------------------------------

       Resolution: Fixed
    Fix Version/s: OpenCMIS 1.0.0
         Assignee: Florian Müller

I've removed that test.
                
> Update Smoke Test: always fail with empty properties
> ----------------------------------------------------
>
>                 Key: CMIS-714
>                 URL: https://issues.apache.org/jira/browse/CMIS-714
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-tck
>    Affects Versions: OpenCMIS 0.10.0
>            Reporter: Jaime Porras López
>            Assignee: Florian Müller
>             Fix For: OpenCMIS 1.0.0
>
>
> Update a docuemnt with an empty set of properties is tried as part of the Update Smoke
Test. This is always failing because the OpenCMIS client is checking that the set ois not
empty. So the exception is always thrown in the OpenCMIS client, not in the server.
> {code:title=Update Smoke Test code}
> org.apache.chemistry.opencmis.tck.tests.crud.UpdateSmokeTest.updateDocument(Session,
Folder)
> 	...
>         // update nothing
>         try {
>             properties = new HashMap<String, Object>();
>             doc2.updateProperties(properties, false);
>         } catch (Exception e) {
>             addResult(createResult(WARNING,
>                     "updateProperties without property changes returned an error: " +
e.getMessage(), e, false));
>         }
> 	...
> {code}
> {code:title=OpenCMIS client code}		
> org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(Map<String,
?>, boolean)
> 	...
>         if (properties == null || properties.isEmpty()) {
>             throw new IllegalArgumentException("Properties must not be empty!");
>         }
> 	...
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message