public class TaskAssert extends AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>
Taskengine| Modifier | Constructor and Description |
|---|---|
protected |
TaskAssert(org.camunda.bpm.engine.ProcessEngine engine,
org.camunda.bpm.engine.task.Task actual) |
| Modifier and Type | Method and Description |
|---|---|
protected static TaskAssert |
assertThat(org.camunda.bpm.engine.ProcessEngine engine,
org.camunda.bpm.engine.task.Task actual) |
protected org.camunda.bpm.engine.runtime.ExecutionQuery |
executionQuery() |
protected org.camunda.bpm.engine.task.Task |
getCurrent() |
TaskAssert |
hasCandidateGroup(String candidateGroupId)
Verifies the expectation that the
Task is currently waiting to
be assigned to a user of the specified candidate group. |
TaskAssert |
hasCandidateGroupAssociated(String candidateGroupId)
Verifies the expectation that the
Task is currently associated to the
specified candidate group - no matter whether it is already assigned to a
specific user or not. |
TaskAssert |
hasCandidateUser(String candidateUserId)
Verifies the expectation that the
Task is currently waiting to
be assigned to a specified candidate user. |
TaskAssert |
hasCandidateUser(String candidateUserId,
boolean unassignedOnly) |
TaskAssert |
hasCandidateUserAssociated(String candidateUserId)
Verifies the expectation that the
Task is currently associated to the
specified candidate user - no matter whether it is already assigned to a
specific user or not. |
TaskAssert |
hasDefinitionKey(String taskDefinitionKey)
Verifies the definition key of a
Task. |
TaskAssert |
hasDescription(String description)
Verifies the description of a
Task. |
TaskAssert |
hasDueDate(Date dueDate)
Verifies the due date of a
Task. |
TaskAssert |
hasFormKey(String formKey)
Verifies the expectation that the
Task has a specified form key. |
TaskAssert |
hasId(String id)
Verifies the internal id of a
Task. |
TaskAssert |
hasName(String name)
Verifies the name (label) of a
Task. |
protected org.camunda.bpm.engine.history.HistoricActivityInstanceQuery |
historicActivityInstanceQuery() |
protected org.camunda.bpm.engine.history.HistoricDetailQuery |
historicDetailQuery() |
protected org.camunda.bpm.engine.history.HistoricProcessInstanceQuery |
historicProcessInstanceQuery() |
protected org.camunda.bpm.engine.history.HistoricTaskInstanceQuery |
historicTaskInstanceQuery() |
protected org.camunda.bpm.engine.history.HistoricVariableInstanceQuery |
historicVariableInstanceQuery() |
TaskAssert |
isAssignedTo(String userId)
Verifies the expectation that the
Task is currently assigned to
the specified user. |
TaskAssert |
isNotAssigned()
Verifies the expectation that the
Task is currently not assigned to
any particular user. |
protected org.camunda.bpm.engine.runtime.JobQuery |
jobQuery() |
protected org.camunda.bpm.engine.repository.ProcessDefinitionQuery |
processDefinitionQuery() |
protected org.camunda.bpm.engine.runtime.ProcessInstanceQuery |
processInstanceQuery() |
protected org.camunda.bpm.engine.task.TaskQuery |
taskQuery() |
protected String |
toString(org.camunda.bpm.engine.task.Task task) |
protected org.camunda.bpm.engine.runtime.VariableInstanceQuery |
variableInstanceQuery() |
assertApi, authorizationService, caseDefinitionQuery, caseExecutionQuery, caseInstanceQuery, caseService, formService, getActual, getExistingCurrent, getLastAssert, historicCaseActivityInstanceQuery, historyService, identityService, managementService, repositoryService, resetLastAsserts, runtimeService, supportsApi, taskServiceas, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, setCustomRepresentation, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorprotected TaskAssert(org.camunda.bpm.engine.ProcessEngine engine,
org.camunda.bpm.engine.task.Task actual)
protected static TaskAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.task.Task actual)
protected org.camunda.bpm.engine.task.Task getCurrent()
getCurrent in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>public TaskAssert isNotAssigned()
Task is currently not assigned to
any particular user.TaskAssertpublic TaskAssert isAssignedTo(String userId)
Task is currently assigned to
the specified user.userId - id of the user the task should be currently assigned to.TaskAssertpublic TaskAssert hasCandidateGroup(String candidateGroupId)
Task is currently waiting to
be assigned to a user of the specified candidate group.candidateGroupId - id of a candidate group the task is waiting to be assigned toTaskAssertpublic TaskAssert hasCandidateGroupAssociated(String candidateGroupId)
Task is currently associated to the
specified candidate group - no matter whether it is already assigned to a
specific user or not.candidateGroupId - id of a candidate group the task is associated toTaskAssertpublic TaskAssert hasCandidateUser(String candidateUserId)
Task is currently waiting to
be assigned to a specified candidate user.candidateUserId - id of a candidate user the task is waiting to be assigned toTaskAssertpublic TaskAssert hasCandidateUserAssociated(String candidateUserId)
Task is currently associated to the
specified candidate user - no matter whether it is already assigned to a
specific user or not.candidateUserId - id of a candidate user the task is associated toTaskAssertpublic TaskAssert hasCandidateUser(String candidateUserId, boolean unassignedOnly)
public TaskAssert hasDueDate(Date dueDate)
Task.dueDate - the date the task should be due atTaskAssertpublic TaskAssert hasDefinitionKey(String taskDefinitionKey)
Task. This key can be found
in the <userTask id="myTaskDefinitionKey" .../> attribute of the
process definition BPMN 2.0 XML file.taskDefinitionKey - the expected value of the task/@id attributeTaskAssertpublic TaskAssert hasFormKey(String formKey)
Task has a specified form key.formKey - the expected form key.TaskAssertpublic TaskAssert hasId(String id)
Task.id - the expected value of the internal task idTaskAssertpublic TaskAssert hasName(String name)
Task. This name can be found
in the <userTask name="myName" .../> attribute of the
process definition BPMN 2.0 XML file.name - the expected value of the nameTaskAssertpublic TaskAssert hasDescription(String description)
Task. This description can be found
in the <userTask><documentation>description</documentation></userTask>
element of the process definition BPMN 2.0 XML file.description - the expected value of the descriptionTaskAssertprotected String toString(org.camunda.bpm.engine.task.Task task)
toString in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.task.TaskQuery taskQuery()
taskQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.runtime.JobQuery jobQuery()
jobQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.runtime.ProcessInstanceQuery processInstanceQuery()
processInstanceQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.runtime.ExecutionQuery executionQuery()
executionQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.runtime.VariableInstanceQuery variableInstanceQuery()
variableInstanceQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.history.HistoricActivityInstanceQuery historicActivityInstanceQuery()
historicActivityInstanceQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.history.HistoricDetailQuery historicDetailQuery()
historicDetailQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.history.HistoricProcessInstanceQuery historicProcessInstanceQuery()
historicProcessInstanceQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.history.HistoricTaskInstanceQuery historicTaskInstanceQuery()
historicTaskInstanceQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.history.HistoricVariableInstanceQuery historicVariableInstanceQuery()
historicVariableInstanceQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>protected org.camunda.bpm.engine.repository.ProcessDefinitionQuery processDefinitionQuery()
processDefinitionQuery in class AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>Copyright © 2019 Camunda Services GmbH. All rights reserved.