Unit test for type form filter

* experimenting to see if Mockito would allow us to unit test code previously difficult to test



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63014 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2014-02-21 07:36:35 +00:00
parent a01c6a1a42
commit 2a9704ba64
4 changed files with 184 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ public class RecordsManagementTypeFormFilter extends RecordsManagementFormFilter
Map<QName, PropertyDefinition> customProps = rmAdminService.getCustomPropertyDefinitions(customisableType);
if (customProps != null)
if (customProps != null && customProps.isEmpty() == false)
{
if (logger.isDebugEnabled() == true)
{