chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Zavizionov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CMIS-150) VersionsTest.testCheckout to not assert the VersionSeriesId in pwc with ObjectId previosly document created.
Date Wed, 14 Apr 2010 15:51:49 GMT

    [ https://issues.apache.org/jira/browse/CMIS-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856940#action_12856940
] 

Alexey Zavizionov commented on CMIS-150:
----------------------------------------

There are no dependencies between the ObjectId and the VersionSeriesId.

This patch is works for us.

Index: src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java
===================================================================
--- src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java	(revision 932410)
+++ src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java	(working copy)
@@ -100,7 +100,6 @@
         CMISObject pwcObject = pwc.getExtension(CMISConstants.OBJECT);
         Assert.assertNotNull(pwcObject);
         Assert.assertTrue(pwcObject.isVersionSeriesCheckedOut().getBooleanValue());
-        Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue());
         Assert.assertEquals(docObject.getVersionSeriesId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue());
         Assert.assertEquals(pwcObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesCheckedOutId().getStringValue());
         Assert.assertNotNull(pwcObject.getVersionSeriesCheckedOutBy().getStringValue());
@@ -114,7 +113,6 @@
         CMISObject pwcGetObject = pwc.getExtension(CMISConstants.OBJECT);
         Assert.assertNotNull(pwcGetObject);
         Assert.assertTrue(pwcGetObject.isVersionSeriesCheckedOut().getBooleanValue());
-        Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcGetObject.getVersionSeriesId().getStringValue());
         Assert.assertEquals(pwcGetObject.getObjectId().getStringValue(), pwcGetObject.getVersionSeriesCheckedOutId().getStringValue());
         Assert.assertNotNull(pwcGetObject.getVersionSeriesCheckedOutBy().getStringValue());
 

Regards,
Alexey.
xCMIS Team.

> VersionsTest.testCheckout to not assert the VersionSeriesId in pwc with ObjectId previosly
document created.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CMIS-150
>                 URL: https://issues.apache.org/jira/browse/CMIS-150
>             Project: Chemistry
>          Issue Type: Bug
>          Components: tck
>            Reporter: Alexey Zavizionov
>
>         Assert.assertEquals(docObject.getObjectId().getStringValue(), pwcObject.getVersionSeriesId().getStringValue());
> 	at org.apache.chemistry.tck.atompub.test.spec.VersionsTest.testCheckout(VersionsTest.java:103)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message