mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
44 lines
1.4 KiB
Java
44 lines
1.4 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 TestPublicApiAtomPubTCK extends AbstractEnterpriseOpenCMISTCKTest
|
|
{
|
|
private static final String CMIS_URL = "http://{0}:{1}/{2}/api/{3}/{4}/cmis/versions/1.0/atom";
|
|
protected static final Log logger = LogFactory.getLog(TestPublicApiAtomPubTCK.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");
|
|
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
|
|
{
|
|
}
|
|
} |