chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1457819 - in /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck: impl/ tests/crud/ tests/types/
Date Mon, 18 Mar 2013 15:38:43 GMT
Author: fmui
Date: Mon Mar 18 15:38:43 2013
New Revision: 1457819

URL: http://svn.apache.org/r1457819
Log:
TCK: activated Item test

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/CRUDTestGroup.java
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/CreateAndDeleteTypeTest.java
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/TypesTestGroup.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=1457819&r1=1457818&r2=1457819&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 Mar 18 15:38:43 2013
@@ -936,13 +936,13 @@ public abstract class AbstractSessionTes
                     addResult(results, assertNotAllowableAction(object, Action.CAN_CREATE_FOLDER,
null, f));
                 }
 
-                if (!(object instanceof Document) && !(object instanceof Policy))
{
+                if (!(object instanceof FileableCmisObject) || (object instanceof Folder))
{
                     f = createResult(FAILURE,
-                            "Non-Document/Policy object has CAN_ADD_OBJECT_TO_FOLDER allowable
action!");
+                            "Non-Filable object or folder has CAN_ADD_OBJECT_TO_FOLDER allowable
action!");
                     addResult(results, assertNotAllowableAction(object, Action.CAN_ADD_OBJECT_TO_FOLDER,
null, f));
 
                     f = createResult(FAILURE,
-                            "Non-Document/Policy object has CAN_REMOVE_OBJECT_FROM_FOLDER
allowable action!");
+                            "Non-Filable object or folder has CAN_REMOVE_OBJECT_FROM_FOLDER
allowable action!");
                     addResult(results, assertNotAllowableAction(object, Action.CAN_REMOVE_OBJECT_FROM_FOLDER,
null, f));
                 }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CRUDTestGroup.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/CRUDTestGroup.java?rev=1457819&r1=1457818&r2=1457819&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CRUDTestGroup.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/CRUDTestGroup.java
Mon Mar 18 15:38:43 2013
@@ -39,7 +39,7 @@ public class CRUDTestGroup extends Abstr
         addTest(new CreateDocumentWithoutContent());
         addTest(new NameCharsetTest());
         addTest(new CreateAndDeleteRelationshipTest());
-        // addTest(new CreateAndDeleteItemTest());
+        addTest(new CreateAndDeleteItemTest());
         addTest(new UpdateSmokeTest());
         addTest(new SetAndDeleteContentTest());
         addTest(new ContentRangesTest());

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/CreateAndDeleteTypeTest.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/types/CreateAndDeleteTypeTest.java?rev=1457819&r1=1457818&r2=1457819&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/CreateAndDeleteTypeTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/CreateAndDeleteTypeTest.java
Mon Mar 18 15:38:43 2013
@@ -83,7 +83,7 @@ public class CreateAndDeleteTypeTest ext
         try {
             newType = session.createType(newTypeDef);
         } catch (CmisBaseException e) {
-            addResult(createResult(FAILURE, "Creating type '" + newType.getId() + "' failed:
" + e.getMessage()));
+            addResult(createResult(FAILURE, "Creating type '" + newTypeDef.getId() + "' failed:
" + e.getMessage()));
             return;
         }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/TypesTestGroup.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/types/TypesTestGroup.java?rev=1457819&r1=1457818&r2=1457819&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/TypesTestGroup.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/TypesTestGroup.java
Mon Mar 18 15:38:43 2013
@@ -34,5 +34,6 @@ public class TypesTestGroup extends Abst
         setDescription("Types tests.");
 
         addTest(new BaseTypesTest());
+        // addTest(new CreateAndDeleteTypeTest());
     }
 }



Mime
View raw message