Class TaskAssert
- java.lang.Object
- 
- org.assertj.core.api.AbstractAssert<S,A>
- 
- org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert<TaskAssert,Task>
- 
- org.camunda.bpm.engine.test.assertions.bpmn.TaskAssert
 
 
 
- 
- All Implemented Interfaces:
- org.assertj.core.api.Assert<TaskAssert,Task>,- org.assertj.core.api.Descriptable<TaskAssert>,- org.assertj.core.api.ExtensionPoints<TaskAssert,Task>
 
 public class TaskAssert extends AbstractProcessAssert<TaskAssert,Task> Assertions for aTask.
- 
- 
Field Summary- 
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssertengine
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedTaskAssert(ProcessEngine engine, Task actual)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static TaskAssertassertThat(ProcessEngine engine, Task actual)protected TaskgetCurrent()TaskAsserthasCandidateGroup(java.lang.String candidateGroupId)Verifies the expectation that theTaskis currently waiting to be assigned to a user of the specified candidate group.TaskAsserthasCandidateGroupAssociated(java.lang.String candidateGroupId)Verifies the expectation that theTaskis currently associated to the specified candidate group - no matter whether it is already assigned to a specific user or not.TaskAsserthasCandidateUser(java.lang.String candidateUserId)Verifies the expectation that theTaskis currently waiting to be assigned to a specified candidate user.TaskAsserthasCandidateUser(java.lang.String candidateUserId, boolean unassignedOnly)TaskAsserthasCandidateUserAssociated(java.lang.String candidateUserId)Verifies the expectation that theTaskis currently associated to the specified candidate user - no matter whether it is already assigned to a specific user or not.TaskAsserthasDefinitionKey(java.lang.String taskDefinitionKey)Verifies the definition key of aTask.TaskAsserthasDescription(java.lang.String description)Verifies the description of aTask.TaskAsserthasDueDate(java.util.Date dueDate)Verifies the due date of aTask.TaskAsserthasFormKey(java.lang.String formKey)Verifies the expectation that theTaskhas a specified form key.TaskAsserthasId(java.lang.String id)Verifies the internal id of aTask.TaskAsserthasName(java.lang.String name)Verifies the name (label) of aTask.TaskAssertisAssignedTo(java.lang.String userId)Verifies the expectation that theTaskis currently assigned to the specified user.TaskAssertisNotAssigned()Verifies the expectation that theTaskis currently not assigned to any particular user.protected TaskQuerytaskQuery()protected java.lang.StringtoString(Task task)- 
Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssertcaseDefinitionQuery, caseExecutionQuery, caseInstanceQuery, caseService, executionQuery, externalTaskQuery, externalTaskService, formService, getActual, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicCaseActivityInstanceQuery, historicProcessInstanceQuery, historicVariableInstanceQuery, historyService, jobQuery, managementService, processDefinitionQuery, processInstanceQuery, repositoryService, resetLastAsserts, runtimeService, taskService
 - 
Methods inherited from class org.assertj.core.api.AbstractAssertasInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
 
- 
 
- 
- 
- 
Constructor Detail- 
TaskAssertprotected TaskAssert(ProcessEngine engine, Task actual) 
 
- 
 - 
Method Detail- 
assertThatprotected static TaskAssert assertThat(ProcessEngine engine, Task actual) 
 - 
getCurrentprotected Task getCurrent() - Specified by:
- getCurrentin class- AbstractProcessAssert<TaskAssert,Task>
 
 - 
isNotAssignedpublic TaskAssert isNotAssigned() Verifies the expectation that theTaskis currently not assigned to any particular user.- Returns:
- this TaskAssert
 
 - 
isAssignedTopublic TaskAssert isAssignedTo(java.lang.String userId) Verifies the expectation that theTaskis currently assigned to the specified user.- Parameters:
- userId- id of the user the task should be currently assigned to.
- Returns:
- this TaskAssert
 
 - 
hasCandidateGrouppublic TaskAssert hasCandidateGroup(java.lang.String candidateGroupId) Verifies the expectation that theTaskis currently waiting to be assigned to a user of the specified candidate group.- Parameters:
- candidateGroupId- id of a candidate group the task is waiting to be assigned to
- Returns:
- this TaskAssert
- Since:
- Camunda Platform 7.0
 
 - 
hasCandidateGroupAssociatedpublic TaskAssert hasCandidateGroupAssociated(java.lang.String candidateGroupId) Verifies the expectation that theTaskis currently associated to the specified candidate group - no matter whether it is already assigned to a specific user or not.- Parameters:
- candidateGroupId- id of a candidate group the task is associated to
- Returns:
- this TaskAssert
- Since:
- Camunda Platform 7.3
 
 - 
hasCandidateUserpublic TaskAssert hasCandidateUser(java.lang.String candidateUserId) Verifies the expectation that theTaskis currently waiting to be assigned to a specified candidate user.- Parameters:
- candidateUserId- id of a candidate user the task is waiting to be assigned to
- Returns:
- this TaskAssert
- Since:
- Camunda Platform 7.0
 
 - 
hasCandidateUserAssociatedpublic TaskAssert hasCandidateUserAssociated(java.lang.String candidateUserId) Verifies the expectation that theTaskis currently associated to the specified candidate user - no matter whether it is already assigned to a specific user or not.- Parameters:
- candidateUserId- id of a candidate user the task is associated to
- Returns:
- this TaskAssert
- Since:
- Camunda Platform 7.3
 
 - 
hasCandidateUserpublic TaskAssert hasCandidateUser(java.lang.String candidateUserId, boolean unassignedOnly) 
 - 
hasDueDatepublic TaskAssert hasDueDate(java.util.Date dueDate) Verifies the due date of aTask.- Parameters:
- dueDate- the date the task should be due at
- Returns:
- this TaskAssert
 
 - 
hasDefinitionKeypublic TaskAssert hasDefinitionKey(java.lang.String taskDefinitionKey) Verifies the definition key of aTask. This key can be found in the <userTask id="myTaskDefinitionKey" .../> attribute of the process definition BPMN 2.0 XML file.- Parameters:
- taskDefinitionKey- the expected value of the task/@id attribute
- Returns:
- this TaskAssert
 
 - 
hasFormKeypublic TaskAssert hasFormKey(java.lang.String formKey) Verifies the expectation that theTaskhas a specified form key.- Parameters:
- formKey- the expected form key.
- Returns:
- this TaskAssert
 
 - 
hasIdpublic TaskAssert hasId(java.lang.String id) Verifies the internal id of aTask.- Parameters:
- id- the expected value of the internal task id
- Returns:
- this TaskAssert
 
 - 
hasNamepublic TaskAssert hasName(java.lang.String name) Verifies the name (label) of aTask. This name can be found in the <userTask name="myName" .../> attribute of the process definition BPMN 2.0 XML file.- Parameters:
- name- the expected value of the name
- Returns:
- this TaskAssert
 
 - 
hasDescriptionpublic TaskAssert hasDescription(java.lang.String description) Verifies the description of aTask. This description can be found in the <userTask><documentation>description</documentation></userTask> element of the process definition BPMN 2.0 XML file.- Parameters:
- description- the expected value of the description
- Returns:
- this TaskAssert
 
 - 
toStringprotected java.lang.String toString(Task task) - Specified by:
- toStringin class- AbstractProcessAssert<TaskAssert,Task>
 
 - 
taskQueryprotected TaskQuery taskQuery() - Overrides:
- taskQueryin class- AbstractProcessAssert<TaskAssert,Task>
 
 
- 
 
-