org.camunda.bpm.engine.test.assertions.cmmn
Class MilestoneAssert

java.lang.Object
  extended by org.assertj.core.api.AbstractAssert<S,A>
      extended by org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert<S,A>
          extended by org.camunda.bpm.engine.test.assertions.cmmn.AbstractCaseAssert<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>
              extended by org.camunda.bpm.engine.test.assertions.cmmn.MilestoneAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>, org.assertj.core.api.Descriptable<MilestoneAssert>, org.assertj.core.api.ExtensionPoints<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>

public class MilestoneAssert
extends AbstractCaseAssert<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>

Author:
Martin Schimak , Malte Sörense

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
 
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself
 
Constructor Summary
protected MilestoneAssert(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
           
 
Method Summary
protected static MilestoneAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
           
 MilestoneAssert isAvailable()
          Verifies the expectation that the CaseExecution is 'available'.
 MilestoneAssert isCompleted()
          Verifies the expectation that the CaseExecution is 'completed'.
 MilestoneAssert isSuspended()
          Verifies the expectation that the CaseExecution is 'suspended'.
 MilestoneAssert isTerminated()
          Verifies the expectation that the CaseExecution is 'terminated'.
 
Methods inherited from class org.camunda.bpm.engine.test.assertions.cmmn.AbstractCaseAssert
caseExecution, caseExecution, caseExecution, caseExecutionQuery, caseTask, caseTask, caseTask, descendantCaseExecution, getActual, getCurrent, getHistoric, hasVars, historicCaseActivityInstanceQuery, humanTask, humanTask, humanTask, isActive, isCaseInstance, isCaseTask, isClosed, isDisabled, isEnabled, isFailed, isHumanTask, isMilestone, isProcessTask, isStage, milestone, milestone, milestone, processTask, processTask, processTask, stage, stage, stage, toString, variables, vars
 
Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
assertApi, authorizationService, caseDefinitionQuery, caseInstanceQuery, caseService, executionQuery, formService, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicDetailQuery, historicProcessInstanceQuery, historicTaskInstanceQuery, historicVariableInstanceQuery, historyService, identityService, jobQuery, managementService, processDefinitionQuery, processInstanceQuery, repositoryService, resetLastAsserts, runtimeService, supportsApi, taskQuery, taskService, variableInstanceQuery
 
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, 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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MilestoneAssert

protected MilestoneAssert(org.camunda.bpm.engine.ProcessEngine engine,
                          org.camunda.bpm.engine.runtime.CaseExecution actual)
Method Detail

assertThat

protected static MilestoneAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine,
                                            org.camunda.bpm.engine.runtime.CaseExecution actual)

isAvailable

public MilestoneAssert isAvailable()
Verifies the expectation that the CaseExecution is 'available'.

Overrides:
isAvailable in class AbstractCaseAssert<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isSuspended

public MilestoneAssert isSuspended()
Verifies the expectation that the CaseExecution is 'suspended'.

Overrides:
isSuspended in class AbstractCaseAssert<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isCompleted

public MilestoneAssert isCompleted()
Verifies the expectation that the CaseExecution is 'completed'. A milestone is 'completed', when his 'occur' transition was performed.

Overrides:
isCompleted in class AbstractCaseAssert<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isTerminated

public MilestoneAssert isTerminated()
Verifies the expectation that the CaseExecution is 'terminated'.

Overrides:
isTerminated in class AbstractCaseAssert<MilestoneAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this


Copyright © 2016 camunda services GmbH. All rights reserved.