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

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

public class JobAssert
extends AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

Assertions for a Job

Author:
Martin Schimak

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.test.assertions.AbstractProcessAssert
engine
 
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself
 
Constructor Summary
protected JobAssert(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.Job actual)
           
 
Method Summary
protected static JobAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.Job actual)
           
protected  org.camunda.bpm.engine.runtime.ExecutionQuery executionQuery()
           
protected  org.camunda.bpm.engine.runtime.Job getCurrent()
           
 JobAssert hasActivityId(String activityId)
           
 JobAssert hasDeploymentId(String expectedDeploymentId)
          Verifies the expectation of a specific deployment id for the Job.
 JobAssert hasDueDate(Date expectedDueDate)
          Verifies the expectation of a specific due date for the Job.
 JobAssert hasExceptionMessage()
          Verifies the expectation of the existence of an exception message for the Job.
 JobAssert hasExecutionId(String expectedExecutionId)
          Verifies the expectation of a specific execution id for the Job.
 JobAssert hasId(String expectedId)
          Verifies the expectation of a specific id for the Job.
 JobAssert hasProcessInstanceId(String expectedProcessInstanceId)
          Verifies the expectation of a specific process instance id for the Job.
 JobAssert hasRetries(int expectedRetries)
          Verifies the expectation of a specific number of retries left for the Job.
protected  org.camunda.bpm.engine.history.HistoricActivityInstanceQuery historicActivityInstanceQuery()
           
protected  org.camunda.bpm.engine.history.HistoricDetailQuery historicDetailQuery()
           
protected  org.camunda.bpm.engine.history.HistoricProcessInstanceQuery historicProcessInstanceQuery()
           
protected  org.camunda.bpm.engine.history.HistoricTaskInstanceQuery historicTaskInstanceQuery()
           
protected  org.camunda.bpm.engine.history.HistoricVariableInstanceQuery historicVariableInstanceQuery()
           
protected  org.camunda.bpm.engine.runtime.JobQuery jobQuery()
           
protected  org.camunda.bpm.engine.repository.ProcessDefinitionQuery processDefinitionQuery()
           
protected  org.camunda.bpm.engine.runtime.ProcessInstanceQuery processInstanceQuery()
           
protected  org.camunda.bpm.engine.task.TaskQuery taskQuery()
           
protected  String toString(org.camunda.bpm.engine.runtime.Job job)
           
protected  org.camunda.bpm.engine.runtime.VariableInstanceQuery variableInstanceQuery()
           
 
Methods inherited from class org.camunda.bpm.engine.test.assertions.AbstractProcessAssert
authorizationService, formService, getActual, getExistingCurrent, getLastAssert, historyService, identityService, managementService, repositoryService, resetLastAsserts, runtimeService, taskService
 
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

JobAssert

protected JobAssert(org.camunda.bpm.engine.ProcessEngine engine,
                    org.camunda.bpm.engine.runtime.Job actual)
Method Detail

assertThat

protected static JobAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine,
                                      org.camunda.bpm.engine.runtime.Job actual)

getCurrent

protected org.camunda.bpm.engine.runtime.Job getCurrent()
Specified by:
getCurrent in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

hasId

public JobAssert hasId(String expectedId)
Verifies the expectation of a specific id for the Job.

Parameters:
expectedId - the expected job id
Returns:
this JobAssert
See Also:
Job.getId()

hasDueDate

public JobAssert hasDueDate(Date expectedDueDate)
Verifies the expectation of a specific due date for the Job.

Parameters:
expectedDueDate - the expected due date
Returns:
this JobAssert
See Also:
Job.getDuedate()

hasProcessInstanceId

public JobAssert hasProcessInstanceId(String expectedProcessInstanceId)
Verifies the expectation of a specific process instance id for the Job.

Parameters:
expectedProcessInstanceId - the expected process instance id
Returns:
this JobAssert
See Also:
Job.getProcessInstanceId()

hasExecutionId

public JobAssert hasExecutionId(String expectedExecutionId)
Verifies the expectation of a specific execution id for the Job.

Parameters:
expectedExecutionId - the expected execution id
Returns:
this JobAssert
See Also:
Job.getExecutionId()

hasRetries

public JobAssert hasRetries(int expectedRetries)
Verifies the expectation of a specific number of retries left for the Job.

Parameters:
expectedRetries - the expected number of retries
Returns:
this JobAssert
See Also:
Job.getExecutionId()

hasExceptionMessage

public JobAssert hasExceptionMessage()
Verifies the expectation of the existence of an exception message for the Job.

Returns:
this JobAssert
See Also:
Job.getExceptionMessage()

hasDeploymentId

public JobAssert hasDeploymentId(String expectedDeploymentId)
Verifies the expectation of a specific deployment id for the Job.

Parameters:
expectedDeploymentId - the expected deployment id
Returns:
this JobAssert
See Also:
Job.getDeploymentId()

hasActivityId

public JobAssert hasActivityId(String activityId)

toString

protected String toString(org.camunda.bpm.engine.runtime.Job job)
Specified by:
toString in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

taskQuery

protected org.camunda.bpm.engine.task.TaskQuery taskQuery()
Overrides:
taskQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

jobQuery

protected org.camunda.bpm.engine.runtime.JobQuery jobQuery()
Overrides:
jobQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

processInstanceQuery

protected org.camunda.bpm.engine.runtime.ProcessInstanceQuery processInstanceQuery()
Overrides:
processInstanceQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

executionQuery

protected org.camunda.bpm.engine.runtime.ExecutionQuery executionQuery()
Overrides:
executionQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

variableInstanceQuery

protected org.camunda.bpm.engine.runtime.VariableInstanceQuery variableInstanceQuery()
Overrides:
variableInstanceQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

historicActivityInstanceQuery

protected org.camunda.bpm.engine.history.HistoricActivityInstanceQuery historicActivityInstanceQuery()
Overrides:
historicActivityInstanceQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

historicDetailQuery

protected org.camunda.bpm.engine.history.HistoricDetailQuery historicDetailQuery()
Overrides:
historicDetailQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

historicProcessInstanceQuery

protected org.camunda.bpm.engine.history.HistoricProcessInstanceQuery historicProcessInstanceQuery()
Overrides:
historicProcessInstanceQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

historicTaskInstanceQuery

protected org.camunda.bpm.engine.history.HistoricTaskInstanceQuery historicTaskInstanceQuery()
Overrides:
historicTaskInstanceQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

historicVariableInstanceQuery

protected org.camunda.bpm.engine.history.HistoricVariableInstanceQuery historicVariableInstanceQuery()
Overrides:
historicVariableInstanceQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>

processDefinitionQuery

protected org.camunda.bpm.engine.repository.ProcessDefinitionQuery processDefinitionQuery()
Overrides:
processDefinitionQuery in class AbstractProcessAssert<JobAssert,org.camunda.bpm.engine.runtime.Job>


Copyright © 2014 camunda services GmbH. All Rights Reserved.