|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.assertj.core.api.AbstractAssert<S,A>
org.camunda.bpm.engine.test.assertions.AbstractProcessAssert<TaskAssert,org.camunda.bpm.engine.task.Task>
org.camunda.bpm.engine.test.assertions.TaskAssert
public class TaskAssert
Assertions for a Task
Method Summary | |
---|---|
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 |
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 |
hasId(String id)
Verifies the internal id of a Task . |
TaskAssert |
hasName(String name)
Verifies the name (label) of a Task . |
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. |
Methods inherited from class org.camunda.bpm.engine.test.assertions.AbstractProcessAssert |
---|
getActual, getLastAssert, resetLastAsserts |
Methods inherited from class org.assertj.core.api.AbstractAssert |
---|
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, has, hashCode, hasSameClassAs, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public TaskAssert isNotAssigned()
Task
is currently not assigned to
any particular user.
TaskAssert
public TaskAssert isAssignedTo(String userId)
Task
is currently assigned to
the specified user.
userId
- id of the user the task should be currently assigned to.
TaskAssert
public TaskAssert hasCandidateGroup(String candidateGroupId)
Task
is currently waiting to
be assigned to a user of the specified candidate group.
candidateGroupId
- id of the candidate group the task is assigned to
TaskAssert
public TaskAssert hasDueDate(Date dueDate)
Task
.
dueDate
- the date the task should be due at
TaskAssert
public 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 attribute
TaskAssert
public TaskAssert hasId(String id)
Task
.
id
- the expected value of the internal task id
TaskAssert
public 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 name
TaskAssert
public 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 description
TaskAssert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |