chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1416504 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/basics/RepositoryInfoTest.java
Date Mon, 03 Dec 2012 13:29:41 GMT
Author: fmui
Date: Mon Dec  3 13:29:40 2012
New Revision: 1416504

URL: http://svn.apache.org/viewvc?rev=1416504&view=rev
Log:
TCK: Allow CMIS 1.1 repository testing

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/basics/RepositoryInfoTest.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/basics/RepositoryInfoTest.java?rev=1416504&r1=1416503&r2=1416504&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/basics/RepositoryInfoTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/basics/RepositoryInfoTest.java
Mon Dec  3 13:29:40 2012
@@ -101,8 +101,9 @@ public class RepositoryInfoTest extends 
         failure = createResult(FAILURE, "CMIS Version Supported is not set!");
         addResult(assertStringNotEmpty(ri.getCmisVersionSupported(), success, failure));
 
-        failure = createResult(FAILURE, "CMIS Version Supported is not '1.0'!");
-        addResult(assertEquals("1.0", ri.getCmisVersionSupported(), null, failure));
+        if (!"1.0".equals(ri.getCmisVersionSupported()) && !"1.1".equals(ri.getCmisVersionSupported()))
{
+            addResult(createResult(FAILURE, "CMIS Version Supported is neither '1.0' nor
'1.1'!"));
+        }
 
         // root folder
         success = createResult(OK, "Root folder id: " + ri.getRootFolderId());



Mime
View raw message