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)
59942: Better handling of no message for tests, ALF-20739 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62236 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -246,7 +246,7 @@ public class TaskFormProcessorTest extends TestCase
|
|||||||
|
|
||||||
public void testGenerateMessage() throws Exception
|
public void testGenerateMessage() throws Exception
|
||||||
{
|
{
|
||||||
String message = null;
|
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);
|
||||||
@@ -557,7 +557,7 @@ public class TaskFormProcessorTest extends TestCase
|
|||||||
String dataKey = fieldDef.getDataKeyName();
|
String dataKey = fieldDef.getDataKeyName();
|
||||||
assertEquals(expDataKey, dataKey);
|
assertEquals(expDataKey, dataKey);
|
||||||
FieldData data = form.getFormData().getFieldData(dataKey);
|
FieldData data = form.getFormData().getFieldData(dataKey);
|
||||||
if (fieldData != null)
|
if (fieldData != null && data != null)
|
||||||
{
|
{
|
||||||
assertEquals(fieldData, data.getValue());
|
assertEquals(fieldData, data.getValue());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user