Class DelegateTaskFake
java.lang.Object
org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
org.camunda.community.mockito.delegate.VariableScopeFake<T>
org.camunda.community.mockito.delegate.DelegateTaskFake
- All Implemented Interfaces:
Serializable,org.camunda.bpm.engine.delegate.BpmnModelExecutionContext,org.camunda.bpm.engine.delegate.DelegateTask,org.camunda.bpm.engine.delegate.ProcessEngineServicesAware,org.camunda.bpm.engine.delegate.VariableScope,org.camunda.bpm.engine.impl.core.variable.event.VariableEventDispatcher
public class DelegateTaskFake
extends VariableScopeFake<T>
implements org.camunda.bpm.engine.delegate.DelegateTask, Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class org.camunda.community.mockito.delegate.VariableScopeFake
variableInstanceFactory, variableStoreFields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCandidateGroup(String groupId) voidaddCandidateGroups(Collection<String> candidateGroups) voidaddCandidateUser(String userId) voidaddCandidateUsers(Collection<String> candidateUsers) voidaddGroupIdentityLink(String groupId, String type) voidaddUserIdentityLink(String userId, String type) candidateGroupIds(org.camunda.bpm.engine.delegate.DelegateTask task) candidateUserIds(org.camunda.bpm.engine.delegate.DelegateTask task) voidcomplete()voiddeleteCandidateGroup(String groupId) voiddeleteCandidateUser(String userId) voiddeleteGroupIdentityLink(String groupId, String type) voiddeleteUserIdentityLink(String userId, String type) org.camunda.bpm.model.bpmn.instance.UserTaskorg.camunda.bpm.model.bpmn.BpmnModelInstanceSet<org.camunda.bpm.engine.task.IdentityLink>org.camunda.bpm.engine.delegate.DelegateCaseExecutionorg.camunda.bpm.engine.delegate.DelegateExecutionTries to cast execution to fake.getId()getName()getOwner()intorg.camunda.bpm.engine.ProcessEngineorg.camunda.bpm.engine.ProcessEngineServicesgroupIds(org.camunda.bpm.engine.delegate.DelegateTask task) booleanvoidsetAssignee(String assignee) voidsetDescription(String description) voidsetDueDate(Date dueDate) voidsetFollowUpDate(Date followUpDate) voidvoidvoidsetPriority(int priority) toString()userIds(org.camunda.bpm.engine.delegate.DelegateTask task) withAssignee(String assignee) withCaseDefinitionId(String caseDefinitionId) withCaseExecution(org.camunda.bpm.engine.delegate.DelegateCaseExecution caseExecution) withCaseExecutionId(String caseExecutionId) withCaseInstanceId(String caseInstanceId) withCreateTime(Date createTime) withDeleteReason(String deleteReason) withDescription(String description) withEventName(String eventName) withExecution(org.camunda.bpm.engine.delegate.DelegateExecution execution) withExecutionId(String executionId) withFollowUpDate(Date followUpDate) withLastUpdated(Date lastUpdated) withPriority(int priority) withProcessDefinitionId(String processDefinitionId) withProcessEngine(org.camunda.bpm.engine.ProcessEngine processEngine) withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices) withProcessInstanceId(String processInstanceId) withTaskDefinitionKey(String taskDefinitionKey) withTenantId(String tenantId) Methods inherited from class org.camunda.community.mockito.delegate.VariableScopeFake
getParentVariableScope, getVariableInstanceFactory, getVariableInstanceLifecycleListeners, getVariableScopeKey, getVariableStore, withVariable, withVariable, withVariableLocal, withVariableLocal, withVariables, withVariablesLocalMethods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
collectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocal, setVariablesLocalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
-
Field Details
-
processEngineServicesAwareFake
-
-
Constructor Details
-
DelegateTaskFake
public DelegateTaskFake() -
DelegateTaskFake
-
-
Method Details
-
candidateUserIds
-
candidateGroupIds
-
userIds
-
userIds
-
groupIds
-
groupIds
-
getId
- Specified by:
getIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withId
-
getName
- Specified by:
getNamein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setName
- Specified by:
setNamein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withName
-
getDescription
- Specified by:
getDescriptionin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setDescription
- Specified by:
setDescriptionin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withDescription
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setPriority
public void setPriority(int priority) - Specified by:
setPriorityin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withPriority
-
getProcessInstanceId
- Specified by:
getProcessInstanceIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withProcessInstanceId
-
getProcessDefinitionId
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withProcessDefinitionId
-
getCaseInstanceId
- Specified by:
getCaseInstanceIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCaseInstanceId
-
getCaseExecutionId
- Specified by:
getCaseExecutionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCaseExecutionId
-
getCaseDefinitionId
- Specified by:
getCaseDefinitionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCaseDefinitionId
-
getCreateTime
- Specified by:
getCreateTimein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCreateTime
-
getLastUpdated
- Specified by:
getLastUpdatedin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withLastUpdated
-
getTaskDefinitionKey
- Specified by:
getTaskDefinitionKeyin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withTaskDefinitionKey
-
getExecution
public org.camunda.bpm.engine.delegate.DelegateExecution getExecution()- Specified by:
getExecutionin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getExecutionFake
Tries to cast execution to fake.- Returns:
- delegate execution fake
-
getExecutionId
- Specified by:
getExecutionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withExecutionId
-
withExecution
-
getCaseExecution
public org.camunda.bpm.engine.delegate.DelegateCaseExecution getCaseExecution()- Specified by:
getCaseExecutionin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getCaseExecutionFake
-
withCaseExecution
public DelegateTaskFake withCaseExecution(org.camunda.bpm.engine.delegate.DelegateCaseExecution caseExecution) -
getEventName
- Specified by:
getEventNamein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withEventName
-
addCandidateUser
- Specified by:
addCandidateUserin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addCandidateUsers
- Specified by:
addCandidateUsersin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addCandidateGroup
- Specified by:
addCandidateGroupin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addCandidateGroups
- Specified by:
addCandidateGroupsin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addUserIdentityLink
- Specified by:
addUserIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addGroupIdentityLink
- Specified by:
addGroupIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteCandidateUser
- Specified by:
deleteCandidateUserin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteCandidateGroup
- Specified by:
deleteCandidateGroupin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteUserIdentityLink
- Specified by:
deleteUserIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteGroupIdentityLink
- Specified by:
deleteGroupIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getCandidates
- Specified by:
getCandidatesin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getOwner
- Specified by:
getOwnerin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setOwner
- Specified by:
setOwnerin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getAssignee
- Specified by:
getAssigneein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setAssignee
- Specified by:
setAssigneein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withAssignee
-
getDueDate
- Specified by:
getDueDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setDueDate
- Specified by:
setDueDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getDeleteReason
- Specified by:
getDeleteReasonin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withDeleteReason
-
getBpmnModelInstance
public org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()- Specified by:
getBpmnModelInstancein interfaceorg.camunda.bpm.engine.delegate.BpmnModelExecutionContext
-
getBpmnModelElementInstance
public org.camunda.bpm.model.bpmn.instance.UserTask getBpmnModelElementInstance()- Specified by:
getBpmnModelElementInstancein interfaceorg.camunda.bpm.engine.delegate.BpmnModelExecutionContext- Specified by:
getBpmnModelElementInstancein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getTenantId
- Specified by:
getTenantIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getFollowUpDate
- Specified by:
getFollowUpDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setFollowUpDate
- Specified by:
setFollowUpDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withFollowUpDate
-
withTenantId
-
complete
public void complete()- Specified by:
completein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
isCompleted
public boolean isCompleted() -
getProcessEngineServices
public org.camunda.bpm.engine.ProcessEngineServices getProcessEngineServices()- Specified by:
getProcessEngineServicesin interfaceorg.camunda.bpm.engine.delegate.ProcessEngineServicesAware
-
getProcessEngine
public org.camunda.bpm.engine.ProcessEngine getProcessEngine()- Specified by:
getProcessEnginein interfaceorg.camunda.bpm.engine.delegate.ProcessEngineServicesAware
-
toString
-
withProcessEngineServices
public DelegateTaskFake withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices) -
withProcessEngine
-