Fixed one of the failing tests for rules coverage:

- The test model didn't allow multiple values for the category property.
 - The setting of the category in the action puts a single value if one doesn't exist,
   or changes the value to a collection if a category already exists.  This is true even
   if the category is exactly the same.
I have **NOT** managed to fix the 'testInboundRuleType' because it would appear that the
test action evaluation is being done with a NoConditionEvaluator.  The test checks to
see that the action is not executed for an empty content node.  It might be a side-effect
of the parent node update policy ... but I can't see why.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-06-16 00:40:19 +00:00
parent 0d95c702cb
commit 1bd38892b4
3 changed files with 46 additions and 18 deletions

View File

@@ -142,6 +142,17 @@ public class ActionImpl extends ParameterizedItemImpl
this.actionDefinitionName = actionDefinitionName;
}
@Override
public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append("Action")
.append("[ id=").append(getId())
.append(", node=").append(nodeRef)
.append(" ]");
return sb.toString();
}
/**
* @see org.alfresco.service.cmr.action.Action#getTitle()
*/