From 7892bcef02a1ed7f1fd91cf6f9f1e319bca37807 Mon Sep 17 00:00:00 2001 From: Martin Muller Date: Mon, 27 Feb 2017 17:08:26 +0000 Subject: [PATCH] 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/BRANCHES/DEV/5.2.N/root@135462 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/public-rest-context.xml | 4 ++-- source/test-java/org/alfresco/rest/api/tests/TestCMIS.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/alfresco/public-rest-context.xml b/config/alfresco/public-rest-context.xml index 1e85bcee90..02d055c54d 100644 --- a/config/alfresco/public-rest-context.xml +++ b/config/alfresco/public-rest-context.xml @@ -954,8 +954,8 @@ - - + + diff --git a/source/test-java/org/alfresco/rest/api/tests/TestCMIS.java b/source/test-java/org/alfresco/rest/api/tests/TestCMIS.java index 88fa17de1c..8ccfa469c6 100644 --- a/source/test-java/org/alfresco/rest/api/tests/TestCMIS.java +++ b/source/test-java/org/alfresco/rest/api/tests/TestCMIS.java @@ -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