From ff815e8e2fca1bbe4ca94e04cfb7fcf1542deb44 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Fri, 15 May 2009 11:01:32 +0000 Subject: [PATCH] Fixed unit test: property map is never null any more git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14330 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/repo/dictionary/constraint/ConstraintsTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/dictionary/constraint/ConstraintsTest.java b/source/java/org/alfresco/repo/dictionary/constraint/ConstraintsTest.java index 5bd6ab86cf..9790fa27a2 100644 --- a/source/java/org/alfresco/repo/dictionary/constraint/ConstraintsTest.java +++ b/source/java/org/alfresco/repo/dictionary/constraint/ConstraintsTest.java @@ -68,7 +68,8 @@ public class ConstraintsTest extends TestCase assertEquals("DummyConstraint type should be 'org.alfresco.repo.dictionary.constraint.ConstraintsTest$DummyConstraint'", "org.alfresco.repo.dictionary.constraint.ConstraintsTest$DummyConstraint", constraint.getType()); - assertNull("DummyConstraint should not have parameters", constraint.getParameters()); + assertNotNull("DummyConstraint should not have empty parameters", constraint.getParameters()); + assertEquals("DummyConstraint should not have empty parameters", 0, constraint.getParameters().size()); List dummyObjects = new ArrayList(3); dummyObjects.add("ABC"); // correct