|
||||||||||
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<ProcessInstanceAssert,org.camunda.bpm.engine.runtime.ProcessInstance>
org.camunda.bpm.engine.test.assertions.ProcessInstanceAssert
public class ProcessInstanceAssert
Assertions for a ProcessInstance
Method Summary | |
---|---|
ProcessInstanceAssert |
calledProcessInstance()
Enter into a chained process instance assert inspecting the one and mostly one called process instance currently available in the context of the process instance under test of this ProcessInstanceAssert. |
ProcessInstanceAssert |
calledProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstanceQuery query)
Enter into a chained process instance assert inspecting a called process instance called by and currently available in the context of the process instance under test of this ProcessInstanceAssert. |
ProcessInstanceAssert |
calledProcessInstance(String processDefinitionKey)
Enter into a chained process instance assert inspecting the one and mostly one called process instance of the specified process definition key currently available in the context of the process instance under test of this ProcessInstanceAssert. |
ProcessInstanceAssert |
hasNotPassed(String... activityIds)
Verifies the expectation that the ProcessInstance has NOT passed one
or more specified activities. |
ProcessInstanceAssert |
hasNoVariables()
Verifies the expectation that the ProcessInstance holds no
process variables at all. |
ProcessInstanceAssert |
hasPassed(String... activityIds)
Verifies the expectation that the ProcessInstance has passed one or
more specified activities. |
ProcessInstanceAssert |
hasPassedInOrder(String... activityIds)
Verifies the expectation that the ProcessInstance has passed one or
more specified activities exactly in the given order. |
ProcessInstanceAssert |
hasProcessDefinitionKey(String processDefinitionKey)
Verifies the expectation that the ProcessInstance has the
given processDefinitionKey. |
ProcessInstanceAssert |
hasVariables(String... names)
Verifies the expectation that the ProcessInstance holds one or
more process variables with the specified names. |
ProcessInstanceAssert |
isActive()
Verifies the expectation that the ProcessInstance is currently active,
iow not suspended and not ended. |
ProcessInstanceAssert |
isEnded()
Verifies the expectation that the ProcessInstance is ended. |
ProcessInstanceAssert |
isNotEnded()
Verifies the expectation that the ProcessInstance is not ended. |
ProcessInstanceAssert |
isNotWaitingAt(String... activityIds)
Verifies the expectation that the ProcessInstance is currently NOT waiting
at one or more specified activities. |
ProcessInstanceAssert |
isNotWaitingFor(String... messageNames)
Verifies the expectation that the ProcessInstance is currently waiting
for one or more specified messages. |
ProcessInstanceAssert |
isStarted()
Verifies the expectation that the ProcessInstance is started. |
ProcessInstanceAssert |
isSuspended()
Verifies the expectation that the ProcessInstance is currently
suspended. |
ProcessInstanceAssert |
isWaitingAt(String... activityIds)
Verifies the expectation that the ProcessInstance is currently waiting
at one or more specified activities. |
ProcessInstanceAssert |
isWaitingAtExactly(String... activityIds)
Verifies the expectation that the ProcessInstance is currently waiting
at exactly one or more specified activities. |
ProcessInstanceAssert |
isWaitingFor(String... messageNames)
Verifies the expectation that the ProcessInstance is currently waiting
for one or more specified messages. |
JobAssert |
job()
Enter into a chained job assert inspecting the one and mostly one job currently available in the context of the process instance under test of this ProcessInstanceAssert. |
JobAssert |
job(org.camunda.bpm.engine.runtime.JobQuery query)
Enter into a chained job assert inspecting only jobs currently available in the context of the process instance under test of this ProcessInstanceAssert. |
JobAssert |
job(String activityId)
Enter into a chained task assert inspecting the one and mostly one task of the specified task definition key currently available in the context of the process instance under test of this ProcessInstanceAssert. |
TaskAssert |
task()
Enter into a chained task assert inspecting the one and mostly one task currently available in the context of the process instance under test of this ProcessInstanceAssert. |
TaskAssert |
task(String taskDefinitionKey)
Enter into a chained task assert inspecting the one and mostly one task of the specified task definition key currently available in the context of the process instance under test of this ProcessInstanceAssert. |
TaskAssert |
task(org.camunda.bpm.engine.task.TaskQuery query)
Enter into a chained task assert inspecting only tasks currently available in the context of the process instance under test of this ProcessInstanceAssert. |
org.assertj.core.api.MapAssert<String,Object> |
variables()
Enter into a chained map assert inspecting the variables currently available in the context of the process instance under test of this ProcessInstanceAssert. |
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 ProcessInstanceAssert isWaitingAt(String... activityIds)
ProcessInstance
is currently waiting
at one or more specified activities.
activityIds
- the id's of the activities the process instance is Expecting to
be waiting at
ProcessInstanceAssert
public ProcessInstanceAssert isNotWaitingAt(String... activityIds)
ProcessInstance
is currently NOT waiting
at one or more specified activities.
activityIds
- the id's of the activities the process instance is expected
not to be waiting at
ProcessInstanceAssert
public ProcessInstanceAssert isWaitingAtExactly(String... activityIds)
ProcessInstance
is currently waiting
at exactly one or more specified activities.
activityIds
- the id's of the activities the process instance is Expecting to
be waiting at
ProcessInstanceAssert
public ProcessInstanceAssert isWaitingFor(String... messageNames)
ProcessInstance
is currently waiting
for one or more specified messages.
messageNames
- the names of the message the process instance is expected to
be waiting for
ProcessInstanceAssert
public ProcessInstanceAssert isNotWaitingFor(String... messageNames)
ProcessInstance
is currently waiting
for one or more specified messages.
messageNames
- the names of the message the process instance is expected to
be waiting for
ProcessInstanceAssert
public ProcessInstanceAssert hasPassed(String... activityIds)
ProcessInstance
has passed one or
more specified activities.
activityIds
- the id's of the activities expected to have been passed
ProcessInstanceAssert
public ProcessInstanceAssert hasPassedInOrder(String... activityIds)
ProcessInstance
has passed one or
more specified activities exactly in the given order.
activityIds
- the id's of the activities expected to have been passed
ProcessInstanceAssert
public ProcessInstanceAssert hasNotPassed(String... activityIds)
ProcessInstance
has NOT passed one
or more specified activities.
activityIds
- the id's of the activities expected NOT to have been passed
ProcessInstanceAssert
public ProcessInstanceAssert hasVariables(String... names)
ProcessInstance
holds one or
more process variables with the specified names.
names
- the names of the process variables expected to exist. In
case no variable name is given, the existence of at least one
variable will be verified.
ProcessInstanceAssert
public ProcessInstanceAssert hasNoVariables()
ProcessInstance
holds no
process variables at all.
ProcessInstanceAssert
public ProcessInstanceAssert hasProcessDefinitionKey(String processDefinitionKey)
ProcessInstance
has the
given processDefinitionKey.
processDefinitionKey
- the expected key
ProcessInstanceAssert
public ProcessInstanceAssert isEnded()
ProcessInstance
is ended.
ProcessInstanceAssert
public ProcessInstanceAssert isSuspended()
ProcessInstance
is currently
suspended.
ProcessInstanceAssert
public ProcessInstanceAssert isNotEnded()
ProcessInstance
is not ended.
ProcessInstanceAssert
public ProcessInstanceAssert isActive()
ProcessInstance
is currently active,
iow not suspended and not ended.
ProcessInstanceAssert
public ProcessInstanceAssert isStarted()
ProcessInstance
is started. This is
also true, in case the process instance already ended.
ProcessInstanceAssert
public TaskAssert task()
org.camunda.bpm.engine.ProcessEngineException
- in case more
than one task is delivered by the query (after being narrowed
to actual ProcessInstance)public TaskAssert task(String taskDefinitionKey)
taskDefinitionKey
- definition key narrowing down the search for
tasks
org.camunda.bpm.engine.ProcessEngineException
- in case more than one
task is delivered by the query (after being narrowed to actual
ProcessInstance)public TaskAssert task(org.camunda.bpm.engine.task.TaskQuery query)
query
- TaskQuery further narrowing down the search for tasks
The query is automatically narrowed down to the actual
ProcessInstance under test of this assertion.
org.camunda.bpm.engine.ProcessEngineException
- in case more than
one task is delivered by the query (after being narrowed to
actual ProcessInstance)public ProcessInstanceAssert calledProcessInstance()
org.camunda.bpm.engine.ProcessEngineException
- in case more
than one process instance is delivered by the query (after being narrowed
to actual ProcessInstance)public ProcessInstanceAssert calledProcessInstance(String processDefinitionKey)
processDefinitionKey
- definition key narrowing down the search for
process instances
org.camunda.bpm.engine.ProcessEngineException
- in case more than one
process instance is delivered by the query (after being narrowed to actual
ProcessInstance)public ProcessInstanceAssert calledProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstanceQuery query)
query
- ProcessDefinitionQuery further narrowing down the search for process
instances. The query is automatically narrowed down to the actual
ProcessInstance under test of this assertion.
org.camunda.bpm.engine.ProcessEngineException
- in case more than
one ProcessInstance is delivered by the query (after being narrowed to
actual ProcessInstance)public JobAssert job()
org.camunda.bpm.engine.ProcessEngineException
- in case more
than one task is delivered by the query (after being narrowed
to actual ProcessInstance)public JobAssert job(String activityId)
activityId
- id narrowing down the search for jobs
org.camunda.bpm.engine.ProcessEngineException
- in case more than one
job is delivered by the query (after being narrowed to actual
ProcessInstance)public JobAssert job(org.camunda.bpm.engine.runtime.JobQuery query)
query
- JobQuery further narrowing down the search for
jobs. The query is automatically narrowed down to the
actual ProcessInstance under test of this assertion.
org.camunda.bpm.engine.ProcessEngineException
- in case more
than one job is delivered by the query (after being narrowed
to actual ProcessInstance)public org.assertj.core.api.MapAssert<String,Object> variables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |