chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1150676 - in /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck: impl/AbstractSessionTest.java tests/crud/CreateAndDeleteFolderTest.java
Date Mon, 25 Jul 2011 12:58:32 GMT
Author: fmui
Date: Mon Jul 25 12:58:31 2011
New Revision: 1150676

URL: http://svn.apache.org/viewvc?rev=1150676&view=rev
Log:
CMIS-404: TCK: added OperationContext getDescendants() and getFolderTree() calls 

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteFolderTest.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=1150676&r1=1150675&r2=1150676&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 Jul 25 12:58:31 2011
@@ -180,8 +180,8 @@ public abstract class AbstractSessionTes
             // check object parents
             List<Folder> objectParents = result.getParents();
 
-            CmisTestResult f = createResult(FAILURE, "Newly created folder has no or more
than one parent! Id: " + result.getId(),
-                    true);
+            CmisTestResult f = createResult(FAILURE, "Newly created folder has no or more
than one parent! Id: "
+                    + result.getId(), true);
             addResult(assertEquals(1, objectParents.size(), null, f));
 
             f = createResult(FAILURE, "First object parent of the newly created folder does
not match parent! Id: "
@@ -199,7 +199,7 @@ public abstract class AbstractSessionTes
 
             // check children of parent
             boolean found = false;
-            for (CmisObject child : parent.getChildren()) {
+            for (CmisObject child : parent.getChildren(SELECT_ALL_NO_CACHE_OC)) {
                 if (child == null) {
                     addResult(createResult(FAILURE, "Parent folder contains a null child!",
true));
                 } else {
@@ -667,7 +667,7 @@ public abstract class AbstractSessionTes
 
         if (isGetDescendantsSupported(session)) {
             long descendantsCount = 0;
-            List<Tree<FileableCmisObject>> descendants = folder.getDescendants(1);
+            List<Tree<FileableCmisObject>> descendants = folder.getDescendants(1,
SELECT_ALL_NO_CACHE_OC);
 
             for (Tree<FileableCmisObject> child : descendants) {
                 descendantsCount++;
@@ -690,7 +690,7 @@ public abstract class AbstractSessionTes
 
         if (isGetFolderTreeSupported(session)) {
             long folderTreeCount = 0;
-            List<Tree<FileableCmisObject>> folderTree = folder.getFolderTree(1);
+            List<Tree<FileableCmisObject>> folderTree = folder.getFolderTree(1,
SELECT_ALL_NO_CACHE_OC);
 
             for (Tree<FileableCmisObject> child : folderTree) {
                 folderTreeCount++;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteFolderTest.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/CreateAndDeleteFolderTest.java?rev=1150676&r1=1150675&r2=1150676&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteFolderTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CreateAndDeleteFolderTest.java
Mon Jul 25 12:58:31 2011
@@ -68,7 +68,7 @@ public class CreateAndDeleteFolderTest e
         addResult(checkChildren(session, testFolder, "Test folder children check"));
 
         // check if all folders are there
-        ItemIterable<CmisObject> children = testFolder.getChildren();
+        ItemIterable<CmisObject> children = testFolder.getChildren(SELECT_ALL_NO_CACHE_OC);
         List<String> childrenIds = new ArrayList<String>();
         for (CmisObject child : children) {
             if (child != null) {



Mime
View raw message