From 3aadf6bf6c5a8be09dc69117c7863465d0b187bf Mon Sep 17 00:00:00 2001 From: Alan Davis Date: Wed, 12 Feb 2014 09:46:26 +0000 Subject: [PATCH] Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud) 59989: Handling of no message for tests, ALF-20739 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62238 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/forms/processor/workflow/TaskFormProcessorTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/test-java/org/alfresco/repo/forms/processor/workflow/TaskFormProcessorTest.java b/source/test-java/org/alfresco/repo/forms/processor/workflow/TaskFormProcessorTest.java index 8ff65bbd0d..d1a1c8b3b6 100644 --- a/source/test-java/org/alfresco/repo/forms/processor/workflow/TaskFormProcessorTest.java +++ b/source/test-java/org/alfresco/repo/forms/processor/workflow/TaskFormProcessorTest.java @@ -93,6 +93,7 @@ public class TaskFormProcessorTest extends TestCase private static final NodeRef FAKE_NODE3 = new NodeRef(NamespaceService.BPM_MODEL_1_0_URI + "/FakeNode3"); private static final NodeRef PCKG_NODE = new NodeRef(NamespaceService.BPM_MODEL_1_0_URI + "/FakePackage"); private static final NodeRef USER_NODE = new NodeRef(NamespaceService.CONTENT_MODEL_1_0_URI + "/admin"); + private static final String NO_MESSAGE = "(No Message)"; private WorkflowService workflowService; private NodeService nodeService; @@ -246,7 +247,7 @@ public class TaskFormProcessorTest extends TestCase public void testGenerateMessage() throws Exception { - String message = "(No Message)"; + String message = NO_MESSAGE; String fieldName = MessageFieldProcessor.KEY; Form form = processForm(fieldName); checkSingleProperty(form, fieldName, message); @@ -262,7 +263,7 @@ public class TaskFormProcessorTest extends TestCase // and make sure the message comes back as null this.task.getProperties().put(PROP_DESCRIPTION, this.task.getTitle()); form = processForm(fieldName); - checkSingleProperty(form, fieldName, null); + checkSingleProperty(form, fieldName, NO_MESSAGE); } public void testGenerateTaskOwner() throws Exception