mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,6 +28,7 @@ import javax.transaction.UserTransaction;
|
||||
|
||||
import org.alfresco.cmis.CMISService;
|
||||
import org.alfresco.cmis.dictionary.CMISMapping;
|
||||
import org.alfresco.cmis.property.CMISPropertyNameMapping;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.node.integrity.IntegrityChecker;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
@@ -115,13 +116,13 @@ public class BaseServicePortTest extends AbstractDependencyInjectionSpringContex
|
||||
@Override
|
||||
protected String[] getConfigLocations()
|
||||
{
|
||||
return new String[] { "classpath:alfresco/application-context.xml", "classpath:alfresco/test-cmis-context.xml" };
|
||||
return new String[] { "classpath:alfresco/application-context.xml", "classpath:test-cmis-context.xml" };
|
||||
}
|
||||
|
||||
protected String getPropertyIDValue(PropertiesType properties, String propertyName)
|
||||
{
|
||||
String result = null;
|
||||
String realPropertyName = CMISPropNamesMapping.getResponsePropertyName(propertyName);
|
||||
String realPropertyName = CMISPropertyNameMapping.getWebServiceName(propertyName);
|
||||
|
||||
for (PropertyIDType property : properties.getPropertyID())
|
||||
{
|
||||
@@ -138,7 +139,7 @@ public class BaseServicePortTest extends AbstractDependencyInjectionSpringContex
|
||||
protected String getPropertyStringValue(PropertiesType properties, String propertyName)
|
||||
{
|
||||
String result = null;
|
||||
String realPropertyName = CMISPropNamesMapping.getResponsePropertyName(propertyName);
|
||||
String realPropertyName = CMISPropertyNameMapping.getWebServiceName(propertyName);
|
||||
|
||||
for (PropertyStringType property : properties.getPropertyString())
|
||||
{
|
||||
@@ -155,7 +156,7 @@ public class BaseServicePortTest extends AbstractDependencyInjectionSpringContex
|
||||
protected boolean getPropertyBooleanValue(PropertiesType properties, String propertyName)
|
||||
{
|
||||
boolean result = false;
|
||||
String realPropertyName = CMISPropNamesMapping.getResponsePropertyName(propertyName);
|
||||
String realPropertyName = CMISPropertyNameMapping.getWebServiceName(propertyName);
|
||||
|
||||
for (PropertyBooleanType property : properties.getPropertyBoolean())
|
||||
{
|
||||
|
@@ -68,4 +68,11 @@ public class DMRepositoryServicePortTest extends BaseServicePortTest
|
||||
assertTrue(capabilities.isCapabilityMultifiling() && capabilities.isCapabilityPWCUpdatable());
|
||||
assertFalse(capabilities.isCapabilityUnfiling() && capabilities.isCapabilityVersionSpecificFiling());
|
||||
}
|
||||
|
||||
public void testGetTypeDefinition() throws Exception
|
||||
{
|
||||
List<RepositoryType> repositories = repositoryServicePort.getRepositories();
|
||||
repositoryServicePort.getTypeDefinition(repositories.get(0).getRepositoryID(), "DOCUMENT_OBJECT_TYPE");
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user