mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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
This commit is contained in:
@@ -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 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 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 NodeRef USER_NODE = new NodeRef(NamespaceService.CONTENT_MODEL_1_0_URI + "/admin");
|
||||||
|
private static final String NO_MESSAGE = "(No Message)";
|
||||||
|
|
||||||
private WorkflowService workflowService;
|
private WorkflowService workflowService;
|
||||||
private NodeService nodeService;
|
private NodeService nodeService;
|
||||||
@@ -246,7 +247,7 @@ public class TaskFormProcessorTest extends TestCase
|
|||||||
|
|
||||||
public void testGenerateMessage() throws Exception
|
public void testGenerateMessage() throws Exception
|
||||||
{
|
{
|
||||||
String message = "(No Message)";
|
String message = NO_MESSAGE;
|
||||||
String fieldName = MessageFieldProcessor.KEY;
|
String fieldName = MessageFieldProcessor.KEY;
|
||||||
Form form = processForm(fieldName);
|
Form form = processForm(fieldName);
|
||||||
checkSingleProperty(form, fieldName, message);
|
checkSingleProperty(form, fieldName, message);
|
||||||
@@ -262,7 +263,7 @@ public class TaskFormProcessorTest extends TestCase
|
|||||||
// and make sure the message comes back as null
|
// and make sure the message comes back as null
|
||||||
this.task.getProperties().put(PROP_DESCRIPTION, this.task.getTitle());
|
this.task.getProperties().put(PROP_DESCRIPTION, this.task.getTitle());
|
||||||
form = processForm(fieldName);
|
form = processForm(fieldName);
|
||||||
checkSingleProperty(form, fieldName, null);
|
checkSingleProperty(form, fieldName, NO_MESSAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testGenerateTaskOwner() throws Exception
|
public void testGenerateTaskOwner() throws Exception
|
||||||
|
Reference in New Issue
Block a user