chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1236219 - in /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck: impl/AbstractCmisTestGroup.java tests/crud/CreateAndDeleteDocumentTest.java
Date Thu, 26 Jan 2012 15:00:49 GMT
Author: fmui
Date: Thu Jan 26 15:00:49 2012
New Revision: 1236219

URL: http://svn.apache.org/viewvc?rev=1236219&view=rev
Log:
minor TCK fixes

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractCmisTestGroup.java
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteDocumentTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractCmisTestGroup.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/AbstractCmisTestGroup.java?rev=1236219&r1=1236218&r2=1236219&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractCmisTestGroup.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractCmisTestGroup.java
Thu Jan 26 15:00:49 2012
@@ -62,7 +62,7 @@ public abstract class AbstractCmisTestGr
     public void setDescription(String description) {
         this.description = description;
     }
-    
+
     public List<CmisTest> getTests() {
         return tests;
     }
@@ -112,16 +112,16 @@ public abstract class AbstractCmisTestGr
                     if (test instanceof AbstractCmisTest) {
                         ((AbstractCmisTest) test).setTime(end - start);
                     }
-
+                } catch (Exception e) {
+                    if (!(e instanceof FatalTestException)) {
+                        throw e;
+                    }
+                } finally {
                     postTest(test);
 
                     if (progressMonitor != null) {
                         progressMonitor.endTest(test);
                     }
-                } catch (Exception e) {
-                    if (!(e instanceof FatalTestException)) {
-                        throw e;
-                    }
                 }
             }
         } finally {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteDocumentTest.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/crud/CreateAndDeleteDocumentTest.java?rev=1236219&r1=1236218&r2=1236219&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteDocumentTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteDocumentTest.java
Thu Jan 26 15:00:49 2012
@@ -110,7 +110,7 @@ public class CreateAndDeleteDocumentTest
 
             count = 0;
             ItemIterable<CmisObject> page2 = testFolder.getChildren(SELECT_ALL_NO_CACHE_OC_ORDER_BY_NAME)
-                    .getPage(pageSize).skipTo(pageSize - 1);
+                    .skipTo(pageSize - 1).getPage(pageSize);
             for (CmisObject child : page2) {
                 count++;
 



Mime
View raw message