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 2013/09/28 17:41:37 UTC

svn commit: r1527202 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/ContentChangesSmokeTest.java

Author: fmui
Date: Sat Sep 28 15:41:37 2013
New Revision: 1527202

URL: http://svn.apache.org/r1527202
Log:
tweaked the change log token tests

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/ContentChangesSmokeTest.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/query/ContentChangesSmokeTest.java?rev=1527202&r1=1527201&r2=1527202&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/ContentChangesSmokeTest.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/ContentChangesSmokeTest.java Sat Sep 28 15:41:37 2013
@@ -19,6 +19,7 @@
 package org.apache.chemistry.opencmis.tck.tests.query;
 
 import static org.apache.chemistry.opencmis.tck.CmisTestResultStatus.FAILURE;
+import static org.apache.chemistry.opencmis.tck.CmisTestResultStatus.INFO;
 import static org.apache.chemistry.opencmis.tck.CmisTestResultStatus.SKIPPED;
 
 import java.util.Map;
@@ -65,9 +66,13 @@ public class ContentChangesSmokeTest ext
                     f = createResult(FAILURE, "Change log token is null!");
                     addResult(assertNotNull(events.getLatestChangeLogToken(), null, f));
                 } else {
-                    // this would be an OpenCMIS bug, not a server issue
-                    f = createResult(FAILURE, "Change log is not null although the AtomPub binding cannot return one!");
-                    addResult(assertNull(events.getLatestChangeLogToken(), null, f));
+                    // an OpenCMIS based server transports the change log token
+                    // in proprietary way.
+                    CmisTestResult ocs = createResult(INFO,
+                            "Change log token is null. The AtomPub binding does not return it.");
+                    CmisTestResult nocs = createResult(INFO,
+                            "Change log token is not null. Probably an OpenCMIS based server.");
+                    addResult(assertNull(events.getLatestChangeLogToken(), ocs, nocs));
                 }
 
                 for (ChangeEvent event : events.getChangeEvents()) {