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/06/26 15:36:48 UTC
svn commit: r1496930 - in /chemistry/opencmis/trunk/chemistry-opencmis-test:
chemistry-opencmis-test-fit/
chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/
chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/op...
Author: fmui
Date: Wed Jun 26 13:36:48 2013
New Revision: 1496930
URL: http://svn.apache.org/r1496930
Log:
CMIS-679: FIT: Running TCK against versionable and non-versionable types during build
Added:
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractAtomPubTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractBrowserTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractWebServicesTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10NonVersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10VersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11NonVersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11VersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11NonVersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11VersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10NonVersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10VersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11NonVersTckIT.java (with props)
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11VersTckIT.java (with props)
Removed:
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11TckIT.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPubTckIT.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/BrowserTckIT.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11TckIT.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServicesTckIT.java
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractTckIT.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/TestParameters.java
chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml?rev=1496930&r1=1496929&r2=1496930&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml Wed Jun 26 13:36:48 2013
@@ -39,8 +39,10 @@
<repository />
<user />
<password />
- <!-- "VersionableType" to run versioning tests with the InMemory repository -->
- <default.documentType>VersionableType</default.documentType>
+ <default.documentType>cmis:document</default.documentType>
+ <default.versionableDocumentType>VersionableType</default.versionableDocumentType>
+ <test.versionable>true</test.versionable>
+ <test.notVersionable>true</test.notVersionable>
</properties>
@@ -130,6 +132,18 @@
<name>org.apache.chemistry.opencmis.tck.default.documentType</name>
<value>${default.documentType}</value>
</systemProperty>
+ <systemProperty>
+ <name>org.apache.chemistry.opencmis.tck.default.versionableDocumentType</name>
+ <value>${default.versionableDocumentType}</value>
+ </systemProperty>
+ <systemProperty>
+ <name>org.apache.chemistry.opencmis.tck.testNotVersionable</name>
+ <value>${test.notVersionable}</value>
+ </systemProperty>
+ <systemProperty>
+ <name>org.apache.chemistry.opencmis.tck.testVersionable</name>
+ <value>${test.versionable}</value>
+ </systemProperty>
<systemProperty>
<name>project.basedir</name>
<value>${project.basedir}</value>
@@ -193,6 +207,9 @@
<service.factory.class>org.modeshape.jcr.JcrRepositoryFactory</service.factory.class>
<repository>test</repository>
<default.documentType>cmis:document</default.documentType>
+ <default.versionableDocumentType>cmis:document</default.versionableDocumentType>
+ <test.versionable>true</test.versionable>
+ <test.notVersionable>false</test.notVersionable>
<forkMode>never</forkMode>
</properties>
<dependencies>
@@ -248,7 +265,10 @@
<!-- Used in ServiceLoader to look up impl. -->
<service.factory.class>${factory.class}</service.factory.class>
<repository>test</repository>
- <default.documentType>VersionableType</default.documentType>
+ <default.documentType>cmis:document</default.documentType>
+ <default.versionableDocumentType>VersionableType</default.versionableDocumentType>
+ <test.versionable>true</test.versionable>
+ <test.notVersionable>true</test.notVersionable>
</properties>
<dependencies>
<dependency>
@@ -281,6 +301,9 @@
<user>admin</user>
<password>admin</password>
<default.documentType>cmis:document</default.documentType>
+ <default.versionableDocumentType>cmis:document</default.versionableDocumentType>
+ <test.versionable>true</test.versionable>
+ <test.notVersionable>false</test.notVersionable>
<forkMode>never</forkMode>
</properties>
<dependencies>
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractAtomPubTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractAtomPubTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractAtomPubTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractAtomPubTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import java.util.Map;
+
+import org.apache.chemistry.opencmis.commons.SessionParameter;
+import org.apache.chemistry.opencmis.commons.enums.BindingType;
+
+public abstract class AbstractAtomPubTckIT extends AbstractTckIT {
+
+ public abstract String getAtomPubPath();
+
+ @Override
+ public Map<String, String> getSessionParameters() {
+ Map<String, String> parameters = getBaseSessionParameters();
+
+ String url = "http://" + HOST + ":" + PORT + getAtomPubPath();
+
+ parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
+ parameters.put(SessionParameter.ATOMPUB_URL, url);
+
+ return parameters;
+ }
+
+ @Override
+ public BindingType getBindingType() {
+ return BindingType.ATOMPUB;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractAtomPubTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractBrowserTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractBrowserTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractBrowserTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractBrowserTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import java.util.Map;
+
+import org.apache.chemistry.opencmis.commons.SessionParameter;
+import org.apache.chemistry.opencmis.commons.enums.BindingType;
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public abstract class AbstractBrowserTckIT extends AbstractTckIT {
+
+ public static final String BROWSER_PATH = "/opencmis/browser";
+
+ @Override
+ public Map<String, String> getSessionParameters() {
+ Map<String, String> parameters = getBaseSessionParameters();
+
+ String url = "http://" + HOST + ":" + PORT + BROWSER_PATH;
+
+ parameters.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());
+ parameters.put(SessionParameter.BROWSER_URL, url);
+
+ return parameters;
+ }
+
+ @Override
+ public BindingType getBindingType() {
+ return BindingType.BROWSER;
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_1;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractBrowserTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractTckIT.java?rev=1496930&r1=1496929&r2=1496930&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractTckIT.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractTckIT.java Wed Jun 26 13:36:48 2013
@@ -20,6 +20,7 @@ package org.apache.chemistry.opencmis.fi
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
+import static org.junit.Assume.assumeTrue;
import java.io.File;
import java.util.HashMap;
@@ -38,9 +39,22 @@ import org.apache.chemistry.opencmis.tck
import org.apache.chemistry.opencmis.tck.impl.TestParameters;
import org.apache.chemistry.opencmis.tck.report.TextReport;
import org.apache.chemistry.opencmis.tck.runner.AbstractRunner;
+import org.junit.Before;
import org.junit.Test;
public abstract class AbstractTckIT extends AbstractRunner {
+ public static final String TEST = "org.apache.chemistry.opencmis.tck.test";
+ public static final String TEST_CMIS_1_0 = "org.apache.chemistry.opencmis.tck.testCmis10";
+ public static final String TEST_CMIS_1_1 = "org.apache.chemistry.opencmis.tck.testCmis11";
+ public static final String TEST_ATOMPUB = "org.apache.chemistry.opencmis.tck.testAtomPub";
+ public static final String TEST_WEBSERVICES = "org.apache.chemistry.opencmis.tck.testWebServices";
+ public static final String TEST_BROWSER = "org.apache.chemistry.opencmis.tck.testBrowser";
+ public static final String TEST_NOT_VERSIONABLE = "org.apache.chemistry.opencmis.tck.testNotVersionable";
+ public static final String TEST_VERSIONABLE = "org.apache.chemistry.opencmis.tck.testVersionable";
+
+ public static final String DEFAULT_VERSIONABLE_DOCUMENT_TYPE = "org.apache.chemistry.opencmis.tck.default.versionableDocumentType";
+ public static final String DEFAULT_VERSIONABLE_DOCUMENT_TYPE_VALUE = "VersionableType"; // InMemory
+
public static final String HOST = "localhost";
public static final int PORT = 19080;
@@ -54,6 +68,8 @@ public abstract class AbstractTckIT exte
public abstract CmisVersion getCmisVersion();
+ public abstract boolean usesVersionableDocumentType();
+
public Map<String, String> getBaseSessionParameters() {
Map<String, String> parameters = new HashMap<String, String>();
@@ -62,16 +78,51 @@ public abstract class AbstractTckIT exte
parameters.put(SessionParameter.USER, System.getProperty(SessionParameter.USER, USER));
parameters.put(SessionParameter.PASSWORD, System.getProperty(SessionParameter.PASSWORD, PASSWORD));
- // default document type is "VersionableType" to run versioning tests
- // with the InMemory repository
- parameters.put(TestParameters.DEFAULT_DOCUMENT_TYPE,
- System.getProperty(TestParameters.DEFAULT_DOCUMENT_TYPE, "VersionableType"));
+ if (usesVersionableDocumentType()) {
+ parameters.put(TestParameters.DEFAULT_DOCUMENT_TYPE,
+ System.getProperty(DEFAULT_VERSIONABLE_DOCUMENT_TYPE, DEFAULT_VERSIONABLE_DOCUMENT_TYPE_VALUE));
+ } else {
+ parameters.put(TestParameters.DEFAULT_DOCUMENT_TYPE, System.getProperty(
+ TestParameters.DEFAULT_DOCUMENT_TYPE, TestParameters.DEFAULT_DOCUMENT_TYPE_VALUE));
+ }
+
parameters.put(TestParameters.DEFAULT_FOLDER_TYPE,
System.getProperty(TestParameters.DEFAULT_FOLDER_TYPE, "cmis:folder"));
return parameters;
}
+ @Before
+ public void checkTest() {
+ assumeTrue("Skipping all TCK tests.", getSystemPropertyBoolean(TEST));
+
+ if (getCmisVersion() == CmisVersion.CMIS_1_0) {
+ assumeTrue("Skipping CMIS 1.0 TCK tests.", getSystemPropertyBoolean(TEST_CMIS_1_0));
+ } else if (getCmisVersion() == CmisVersion.CMIS_1_1) {
+ assumeTrue("Skipping CMIS 1.1 TCK tests.", getSystemPropertyBoolean(TEST_CMIS_1_1));
+ }
+
+ if (getBindingType() == BindingType.ATOMPUB) {
+ assumeTrue("Skipping AtomPub binding TCK tests.", getSystemPropertyBoolean(TEST_ATOMPUB));
+ } else if (getBindingType() == BindingType.WEBSERVICES) {
+ assumeTrue("Skipping Web Services binding TCK tests.", getSystemPropertyBoolean(TEST_WEBSERVICES));
+ } else if (getBindingType() == BindingType.BROWSER) {
+ assumeTrue("Skipping Browser binding TCK tests.", getSystemPropertyBoolean(TEST_BROWSER));
+ }
+
+ if (usesVersionableDocumentType()) {
+ assumeTrue("Skipping TCK tests with versionable document types.",
+ getSystemPropertyBoolean(TEST_VERSIONABLE));
+ } else {
+ assumeTrue("Skipping TCK tests with non-versionable document types.",
+ getSystemPropertyBoolean(TEST_NOT_VERSIONABLE));
+ }
+ }
+
+ protected boolean getSystemPropertyBoolean(String propName) {
+ return "true".equalsIgnoreCase(System.getProperty(propName, "true"));
+ }
+
@Test
public void runTck() throws Exception {
// set up TCK and run it
@@ -86,7 +137,8 @@ public abstract class AbstractTckIT exte
CmisTestReport report = new TextReport();
report.createReport(getParameters(), getGroups(), new File(target, "tck-result-" + getBindingType().value()
- + "-" + getCmisVersion().value() + ".txt"));
+ + "-" + getCmisVersion().value() + "-"
+ + (usesVersionableDocumentType() ? "versionable" : "nonversionable") + ".txt"));
// find failures
for (CmisTestGroup group : getGroups()) {
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractWebServicesTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractWebServicesTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractWebServicesTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractWebServicesTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import java.util.Map;
+
+import org.apache.chemistry.opencmis.commons.SessionParameter;
+import org.apache.chemistry.opencmis.commons.enums.BindingType;
+
+public abstract class AbstractWebServicesTckIT extends AbstractTckIT {
+
+ public abstract String getWebServicesPath();
+
+ @Override
+ public Map<String, String> getSessionParameters() {
+ Map<String, String> parameters = getBaseSessionParameters();
+
+ String url = "http://" + HOST + ":" + PORT + getWebServicesPath() + "/";
+
+ parameters.put(SessionParameter.BINDING_TYPE, BindingType.WEBSERVICES.value());
+ parameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, url + "RepositoryService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, url + "NavigationService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, url + "ObjectService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, url + "VersioningService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, url + "DiscoveryService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, url + "RelationshipService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, url + "MultiFilingService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, url + "PolicyService?wsdl");
+ parameters.put(SessionParameter.WEBSERVICES_ACL_SERVICE, url + "ACLService?wsdl");
+
+ return parameters;
+ }
+
+ @Override
+ public BindingType getBindingType() {
+ return BindingType.WEBSERVICES;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AbstractWebServicesTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10NonVersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10NonVersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10NonVersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10NonVersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class AtomPub10NonVersTckIT extends AbstractAtomPubTckIT {
+
+ @Override
+ public String getAtomPubPath() {
+ return "/opencmis/atom";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_0;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return false;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10NonVersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10VersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10VersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10VersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10VersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class AtomPub10VersTckIT extends AbstractAtomPubTckIT {
+
+ @Override
+ public String getAtomPubPath() {
+ return "/opencmis/atom";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_0;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return true;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub10VersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11NonVersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11NonVersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11NonVersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11NonVersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class AtomPub11NonVersTckIT extends AbstractAtomPubTckIT {
+
+ @Override
+ public String getAtomPubPath() {
+ return "/opencmis/atom11";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_1;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return false;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11NonVersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11VersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11VersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11VersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11VersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class AtomPub11VersTckIT extends AbstractAtomPubTckIT {
+
+ @Override
+ public String getAtomPubPath() {
+ return "/opencmis/atom11";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_1;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return true;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/AtomPub11VersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11NonVersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11NonVersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11NonVersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11NonVersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+public class Browser11NonVersTckIT extends AbstractBrowserTckIT {
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return false;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11NonVersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11VersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11VersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11VersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11VersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+public class Browser11VersTckIT extends AbstractBrowserTckIT {
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return true;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/Browser11VersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10NonVersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10NonVersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10NonVersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10NonVersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class WebServices10NonVersTckIT extends AbstractWebServicesTckIT {
+
+ @Override
+ public String getWebServicesPath() {
+ return "/opencmis/services";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_0;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return false;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10NonVersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10VersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10VersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10VersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10VersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class WebServices10VersTckIT extends AbstractWebServicesTckIT {
+
+ @Override
+ public String getWebServicesPath() {
+ return "/opencmis/services";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_0;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return true;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices10VersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11NonVersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11NonVersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11NonVersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11NonVersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class WebServices11NonVersTckIT extends AbstractWebServicesTckIT {
+
+ @Override
+ public String getWebServicesPath() {
+ return "/opencmis/services11";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_1;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return false;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11NonVersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11VersTckIT.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11VersTckIT.java?rev=1496930&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11VersTckIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11VersTckIT.java Wed Jun 26 13:36:48 2013
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.tck;
+
+import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
+
+public class WebServices11VersTckIT extends AbstractWebServicesTckIT {
+
+ @Override
+ public String getWebServicesPath() {
+ return "/opencmis/services11";
+ }
+
+ @Override
+ public CmisVersion getCmisVersion() {
+ return CmisVersion.CMIS_1_1;
+ }
+
+ @Override
+ public boolean usesVersionableDocumentType() {
+ return true;
+ }
+}
Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/tck/WebServices11VersTckIT.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/TestParameters.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/TestParameters.java?rev=1496930&r1=1496929&r2=1496930&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/TestParameters.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/TestParameters.java Wed Jun 26 13:36:48 2013
@@ -19,6 +19,7 @@
package org.apache.chemistry.opencmis.tck.impl;
public class TestParameters {
+
public static final String DEFAULT_FOLDER_TYPE = "org.apache.chemistry.opencmis.tck.default.folderType";
public static final String DEFAULT_FOLDER_TYPE_VALUE = "cmis:folder";
Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.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/SetAndDeleteContentTest.java?rev=1496930&r1=1496929&r2=1496930&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java Wed Jun 26 13:36:48 2013
@@ -25,7 +25,6 @@ import static org.apache.chemistry.openc
import java.io.ByteArrayInputStream;
import java.io.IOException;
-import java.math.BigInteger;
import java.util.List;
import java.util.Map;
@@ -41,8 +40,6 @@ import org.apache.chemistry.opencmis.com
import org.apache.chemistry.opencmis.commons.enums.CmisVersion;
import org.apache.chemistry.opencmis.commons.enums.ContentStreamAllowed;
import org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException;
-import org.apache.chemistry.opencmis.commons.exceptions.CmisUpdateConflictException;
-import org.apache.chemistry.opencmis.commons.impl.dataobjects.ContentStreamImpl;
import org.apache.chemistry.opencmis.tck.CmisTestResult;
import org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest;
@@ -198,8 +195,6 @@ public class SetAndDeleteContentTest ext
// remove the document
deleteObject(doc);
-
- runContentTest(session, getTestFolder());
} finally {
deleteTestFolder();
}
@@ -212,44 +207,6 @@ public class SetAndDeleteContentTest ext
return session.getRepositoryInfo().getCapabilities().getContentStreamUpdatesCapability();
}
-
- private void runContentTest(Session session, Folder testFolder) {
- if (session.getRepositoryInfo().getCapabilities().getContentStreamUpdatesCapability() != CapabilityContentStreamUpdates.ANYTIME) {
- addResult(createResult(SKIPPED, "Repository doesn't allow to replace content. Test skipped!"));
- return;
- }
-
- Document doc = createDocument(session, testFolder, "content1.txt", "Hello World!");
-
- try {
- if (doc.getChangeToken() == null) {
- addResult(createResult(SKIPPED, "Repository does not provide change tokens. Test skipped!"));
- return;
- }
-
- if (!doc.getAllowableActions().getAllowableActions().contains(Action.CAN_SET_CONTENT_STREAM)) {
- addResult(createResult(SKIPPED, "Document content can't be changed. Test skipped!"));
- return;
- }
-
- byte[] contentBytes = "New content".getBytes();
- ContentStream contentStream = new ContentStreamImpl("content2.txt",
- BigInteger.valueOf(contentBytes.length), "text/plain", new ByteArrayInputStream(contentBytes));
-
- doc.setContentStream(contentStream, true, false);
-
- try {
- doc.setContentStream(contentStream, true, false);
-
- addResult(createResult(FAILURE, "Updating content a second time with the same change token "
- + "should result in an UpdateConflict exception!"));
- } catch (CmisUpdateConflictException e) {
- // expected exception
- }
- } finally {
- deleteObject(doc);
- }
- }
private Document getNewVersion(Session session, Document orgDoc, boolean checkedout, ObjectId newObjectId,
String operation) {