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
This commit is contained in:
Derek Hulley
2009-05-15 11:01:32 +00:00
parent e1ada58fef
commit ff815e8e2f

View File

@@ -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<Object> dummyObjects = new ArrayList<Object>(3);
dummyObjects.add("ABC"); // correct