mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
115466 adavis: Merged 5.1.N (5.1.1) to 5.1-MNT1 (5.1.0) 114587 amorarasu: Merged 5.0.N (5.0.3) to 5.1.N (5.1.1) 114483 amorarasu: Merged V4.2-BUG-FIX (4.2.6) to 5.0.N (5.0.3) 114306 amorarasu: Merged V4.2.5 (4.2.5) to V4.2-BUG-FIX (4.2.6) 114282 adragoi: Merged DEV to V4.2.5 (4.2.5) 114252: MNT-14432 : DB TestPublicAp*TCK failures on DB2, MariaDB, Oracle & SQL Server - configured cmis tck timeout in tests property file git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@115675 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
46 lines
1.8 KiB
Java
46 lines
1.8 KiB
Java
package org.alfresco.rest.api.tests;
|
|
|
|
import java.text.MessageFormat;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import org.alfresco.opencmis.OpenCMISClientContext;
|
|
import org.alfresco.rest.api.tests.RepoService.TestNetwork;
|
|
import org.apache.chemistry.opencmis.commons.enums.BindingType;
|
|
import org.apache.chemistry.opencmis.tck.impl.TestParameters;
|
|
import org.apache.commons.logging.Log;
|
|
import org.apache.commons.logging.LogFactory;
|
|
import org.junit.AfterClass;
|
|
import org.junit.Before;
|
|
|
|
/**
|
|
* OpenCMIS TCK unit tests.
|
|
*
|
|
* @author steveglover
|
|
*
|
|
*/
|
|
public class TestPublicApiAtomPub11TCK extends AbstractEnterpriseOpenCMIS11TCKTest
|
|
{
|
|
private static final String CMIS_URL = "http://{0}:{1}/{2}/api/{3}/{4}/cmis/versions/1.1/atom";
|
|
protected static final Log logger = LogFactory.getLog(TestPublicApiAtomPub11TCK.class);
|
|
|
|
@Before
|
|
public void before() throws Exception
|
|
{
|
|
int port = getTestFixture().getJettyComponent().getPort();
|
|
TestNetwork network = getTestFixture().getRandomNetwork();
|
|
Map<String, String> cmisParameters = new HashMap<String, String>();
|
|
cmisParameters.put(TestParameters.DEFAULT_RELATIONSHIP_TYPE, "R:cm:replaces");
|
|
cmisParameters.put(TestParameters.DEFAULT_SECONDARY_TYPE, "P:cm:author");
|
|
cmisParameters.put(TestParameters.DEFAULT_ITEM_TYPE, "I:cm:cmobject");
|
|
clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
|
|
MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
|
|
"admin@" + network.getId(), "admin", cmisParameters, getTestFixture().getJettyComponent().getApplicationContext());
|
|
overrideVersionableAspectProperties(getTestFixture().getJettyComponent().getApplicationContext());
|
|
}
|
|
|
|
@AfterClass
|
|
public static void shutdown() throws Exception
|
|
{
|
|
}
|
|
} |