Fixed failing WorkflowModelBuilderTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32228 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2011-11-23 11:34:49 +00:00
parent 8e790151c3
commit c5a233ec81

View File

@@ -254,7 +254,8 @@ public class WorkflowModelBuilderTest extends TestCase
public void testBuildWorkflowInstanceDetailed() throws Exception
{
WorkflowTaskDefinition workflowTaskDefinition = makeTaskDefinition();
when(workflowTaskDefinition.getMetadata().getName()).thenReturn(QName.createQName("The Type Name"));
QName taskTypeName = WorkflowModel.TYPE_WORKFLOW_TASK;
when(workflowTaskDefinition.getMetadata().getName()).thenReturn(taskTypeName);
when(workflowTaskDefinition.getMetadata().getTitle()).thenReturn("The Type Title");
when(workflowTaskDefinition.getMetadata().getDescription()).thenReturn("The Type Description");