From 4e858163a8005fc0241bb552ba6dcee46bc2d852 Mon Sep 17 00:00:00 2001 From: Pavel Yurke Date: Tue, 4 Nov 2014 14:38:28 +0000 Subject: [PATCH] Merged HEAD-MNT-2904 to HEAD (5.0.0) 89844:ACE-2904: Localised labels for type, aspect and property definitions are no longer returned - Update of typeDefInclProperties property definitions is required. Updated unit test to check functionality. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@89864 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/test-java/org/alfresco/opencmis/CMISTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/test-java/org/alfresco/opencmis/CMISTest.java b/source/test-java/org/alfresco/opencmis/CMISTest.java index 96cbb38e0b..991bd4dedb 100644 --- a/source/test-java/org/alfresco/opencmis/CMISTest.java +++ b/source/test-java/org/alfresco/opencmis/CMISTest.java @@ -99,6 +99,7 @@ import org.apache.chemistry.opencmis.commons.data.ObjectList; import org.apache.chemistry.opencmis.commons.data.Properties; import org.apache.chemistry.opencmis.commons.data.PropertyData; import org.apache.chemistry.opencmis.commons.data.RepositoryInfo; +import org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition; import org.apache.chemistry.opencmis.commons.definitions.TypeDefinition; import org.apache.chemistry.opencmis.commons.enums.AclPropagation; import org.apache.chemistry.opencmis.commons.enums.Action; @@ -2687,6 +2688,12 @@ public class CMISTest assertNotNull("The display name is incorrect. Please, refer to ACE-2904.", def.getDisplayName()); assertEquals("The display name is incorrect. Please, refer to ACE-2904.", def.getDisplayName(), displayNames[i]); assertEquals("The description is incorrect. Please, refer to ACE-2904.", def.getDescription(), descriptions[i]); + + for (PropertyDefinition property : def.getPropertyDefinitions().values()) + { + assertNotNull("Property definition dispaly name is incorrect. Please, refer to ACE-2904.", property.getDisplayName()); + assertNotNull("Property definition description is incorrect. Please, refer to ACE-2904.", property.getDescription()); + } } return "";