chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1180939 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Date Mon, 10 Oct 2011 13:14:26 GMT
Author: fmui
Date: Mon Oct 10 13:14:25 2011
New Revision: 1180939

URL: http://svn.apache.org/viewvc?rev=1180939&view=rev
Log:
CMIS-445: fixed getObjectOfLatestVersion check

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.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/impl/AbstractSessionTest.java?rev=1180939&r1=1180938&r2=1180939&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Mon Oct 10 13:14:25 2011
@@ -1205,7 +1205,15 @@ public abstract class AbstractSessionTes
             addResult(results, assertIsTrue(lastestVersion.isLatestVersion(), null, f));
 
             // get latest major version
-            Document lastestMajorVersion = doc.getObjectOfLatestVersion(true, SELECT_ALL_NO_CACHE_OC);
+            Document lastestMajorVersion = null;
+            try {
+                lastestMajorVersion = doc.getObjectOfLatestVersion(true, SELECT_ALL_NO_CACHE_OC);
+
+                f = createResult(FAILURE, "getObjectOfLatestVersion returned an invalid object!");
+                addResult(results, assertNotNull(lastestMajorVersion, null, f));
+            } catch (CmisObjectNotFoundException e) {
+                // no latest major version
+            }
             if (lastestMajorVersion != null) {
                 addResult(
                         results,



Mime
View raw message