mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.2) to HEAD (5.2)
135462 mmuller: MNT-16236 changed the property to opencmis.maxContentSizeMB / opencmis.memoryThresholdKB and adjusted the test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137394 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -954,8 +954,8 @@
|
||||
<!-- OpenCMIS -->
|
||||
|
||||
<bean id="publicApiCMISServiceFactory" class="org.alfresco.opencmis.PublicApiAlfrescoCmisServiceFactory" init-method="init">
|
||||
<property name="memoryThreshold" value="${opencmis.memoryThreshold}" />
|
||||
<property name="maxContentSize" value="${opencmis.maxContentSize}" />
|
||||
<property name="memoryThreshold" value="${opencmis.memoryThresholdKB}" />
|
||||
<property name="maxContentSize" value="${opencmis.maxContentSizeMB}" />
|
||||
<property name="cmisConnector" ref="CMISConnector" />
|
||||
<property name="cmisTransactions" ref="CMISService_Transactions" />
|
||||
<property name="cmisExceptions" ref="CMISService_Exceptions" />
|
||||
|
@@ -288,7 +288,7 @@ public class TestCMIS extends EnterpriseTestApi
|
||||
properties.put(PropertyIds.NAME, fileName);
|
||||
|
||||
// change maxContentSize so that the file will be to big
|
||||
long maxContentSize = 5242880L; // 5MB
|
||||
double maxContentSize = 5.8; // 5MB
|
||||
PublicApiAlfrescoCmisServiceFactory publicApiAlfrescoCmisServiceFactory = (PublicApiAlfrescoCmisServiceFactory) ctx.getBean("publicApiCMISServiceFactory");
|
||||
publicApiAlfrescoCmisServiceFactory.setMaxContentSize(maxContentSize);
|
||||
|
||||
@@ -320,7 +320,7 @@ public class TestCMIS extends EnterpriseTestApi
|
||||
}
|
||||
|
||||
// increase maxContensize so that the file is not to big
|
||||
maxContentSize = 10485760L; // 10MB
|
||||
maxContentSize = 10.6; // 10MB
|
||||
publicApiAlfrescoCmisServiceFactory.setMaxContentSize(maxContentSize);
|
||||
|
||||
// for atom
|
||||
@@ -334,7 +334,7 @@ public class TestCMIS extends EnterpriseTestApi
|
||||
assertNotNull(result);
|
||||
|
||||
// ignore the size check
|
||||
maxContentSize = -1L;
|
||||
maxContentSize = -1;
|
||||
publicApiAlfrescoCmisServiceFactory.setMaxContentSize(maxContentSize);
|
||||
|
||||
// for atom
|
||||
|
Reference in New Issue
Block a user