org.camunda.bpm.engine.test.assertions
Class ProcessDefinitionAssert

java.lang.Object
  extended by org.assertj.core.api.AbstractAssert<S,A>
      extended by org.camunda.bpm.engine.test.assertions.AbstractProcessAssert<ProcessDefinitionAssert,org.camunda.bpm.engine.repository.ProcessDefinition>
          extended by org.camunda.bpm.engine.test.assertions.ProcessDefinitionAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<ProcessDefinitionAssert,org.camunda.bpm.engine.repository.ProcessDefinition>, org.assertj.core.api.Descriptable<ProcessDefinitionAssert>, org.assertj.core.api.ExtensionPoints<ProcessDefinitionAssert,org.camunda.bpm.engine.repository.ProcessDefinition>

public class ProcessDefinitionAssert
extends AbstractProcessAssert<ProcessDefinitionAssert,org.camunda.bpm.engine.repository.ProcessDefinition>

Assertions for a ProcessDefinition

Author:
Martin Schimak , Rafael Cordones

Method Summary
 ProcessDefinitionAssert hasActiveInstances(long number)
          Verifies the expectation that the ProcessDefinition currently has the specified number of active instances, iow neither suspended nor ended instances.
 
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

hasActiveInstances

public ProcessDefinitionAssert hasActiveInstances(long number)
Verifies the expectation that the ProcessDefinition currently has the specified number of active instances, iow neither suspended nor ended instances.

Parameters:
number - the number of expected active instances
Returns:
this ProcessDefinitionAssert


Copyright © 2014 camunda services GmbH. All Rights Reserved.