Files
alfresco-community-repo/source/test-java/org/alfresco/rest/api/tests/TestPublicApiAtomPub11TCK.java
Alan Davis 2f7f6b85c2 Merged HEAD-BUG-FIX (Cloud33/4.3) to HEAD (Cloud33/4.3)
62905: Merged PLATFORM1 (Cloud33) to HEAD-BUG-FIX (Cloud33/4.3)
      61335: ACE-33 implementation of cmis:items
          add permissions
          create and delete of cmis:items 
          some unit test fixes
          new unit test for items


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62958 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-02-20 14:23:58 +00:00

46 lines
1.6 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:authority");
clientContext = new OpenCMISClientContext(BindingType.ATOMPUB,
MessageFormat.format(CMIS_URL, "localhost", String.valueOf(port), "alfresco", network.getId(), "public"),
"admin@" + network.getId(), "admin", cmisParameters);
}
@AfterClass
public static void shutdown() throws Exception
{
}
}