chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1214441 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java
Date Wed, 14 Dec 2011 20:13:24 GMT
Author: fmui
Date: Wed Dec 14 20:13:23 2011
New Revision: 1214441

URL: http://svn.apache.org/viewvc?rev=1214441&view=rev
Log:
TCK: CMIS-476: better failure reporting

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.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/versioning/VersioningSmokeTest.java?rev=1214441&r1=1214440&r2=1214441&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/versioning/VersioningSmokeTest.java
Wed Dec 14 20:13:23 2011
@@ -121,8 +121,12 @@ public class VersioningSmokeTest extends
         f = createResult(FAILURE, "Version series has a PWC but cmis:isVersionSeriesCheckedOut
is not TRUE!");
         addResult(assertIsTrue(pwc.isVersionSeriesCheckedOut(), null, f));
 
-        f = createResult(WARNING, "PWC id and cmis:versionSeriesCheckedOutId don't match!");
-        addResult(assertEquals(pwc.getId(), pwc.getVersionSeriesCheckedOutId(), null, f));
+        if (pwc.getVersionSeriesCheckedOutId() == null) {
+            addResult(createResult(WARNING, "cmis:versionSeriesCheckedOutId is not set!"));
+        } else {
+            f = createResult(FAILURE, "PWC id and cmis:versionSeriesCheckedOutId don't match!");
+            addResult(assertEquals(pwc.getId(), pwc.getVersionSeriesCheckedOutId(), null,
f));
+        }
 
         f = createResult(WARNING, "PWC does not have a value for cmis:versionSeriesCheckedOutBy!");
         addResult(assertStringNotEmpty(pwc.getVersionSeriesCheckedOutBy(), null, f));



Mime
View raw message