You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2015/08/12 18:48:53 UTC

svn commit: r1695572 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java

Author: fmui
Date: Wed Aug 12 16:48:53 2015
New Revision: 1695572

URL: http://svn.apache.org/r1695572
Log:
TCK: more realistic versioning test (check out latest version, not first version)

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java?rev=1695572&r1=1695571&r2=1695572&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java Wed Aug 12 16:48:53 2015
@@ -150,7 +150,7 @@ public class VersioningSmokeTest extends
             addResult(checkVersionSeries(session, versions, propertiesToCheck, "Test version series after check in"));
 
             // check out again
-            pwcId = doc.checkOut();
+            pwcId = newVersion.checkOut();
             pwc = (Document) session.getObject(pwcId, SELECT_ALL_NO_CACHE_OC);
 
             addResult(checkObject(session, pwc, getAllProperties(pwc), "PWC spec compliance - test 3"));
@@ -164,7 +164,7 @@ public class VersioningSmokeTest extends
             addResult(checkObject(session, thirdVersion, getAllProperties(thirdVersion), "New version compliance"));
 
             // check out again
-            pwcId = doc.checkOut();
+            pwcId = thirdVersion.checkOut();
             pwc = (Document) session.getObject(pwcId, SELECT_ALL_NO_CACHE_OC);
 
             addResult(checkObject(session, pwc, getAllProperties(pwc), "PWC spec compliance - test 4"));
@@ -186,13 +186,13 @@ public class VersioningSmokeTest extends
             checkCheckedIn(fourthVersion);
 
             // check out again
-            pwcId = doc.checkOut();
+            pwcId = fourthVersion.checkOut();
             pwc = (Document) session.getObject(pwcId, SELECT_ALL_NO_CACHE_OC);
 
             addResult(checkObject(session, pwc, getAllProperties(pwc), "PWC spec compliance - test 5"));
 
             checkCheckedOut(pwc);
-            
+
             // check in giving properties and a new content stream
             String fifthContent = "brand-new content";
             byte[] fifthContentBytes = IOUtils.toUTF8Bytes(fifthContent);