Package org.camunda.bpm.engine.management

Examples of org.camunda.bpm.engine.management.JobDefinition


    mocks.add(createMockJobDefinition());
    return mocks;
  }

  public static JobDefinition createMockJobDefinition() {
    JobDefinition jobDefinition = mock(JobDefinition.class);

    when(jobDefinition.getId()).thenReturn(EXAMPLE_JOB_DEFINITION_ID);
    when(jobDefinition.getProcessDefinitionId()).thenReturn(EXAMPLE_PROCESS_DEFINITION_ID);
    when(jobDefinition.getProcessDefinitionKey()).thenReturn(EXAMPLE_PROCESS_DEFINITION_KEY);
    when(jobDefinition.getJobType()).thenReturn(EXAMPLE_JOB_TYPE);
    when(jobDefinition.getJobConfiguration()).thenReturn(EXAMPLE_JOB_CONFIG);
    when(jobDefinition.getActivityId()).thenReturn(EXAMPLE_ACTIVITY_ID);
    when(jobDefinition.isSuspended()).thenReturn(EXAMPLE_JOB_DEFINITION_IS_SUSPENDED);

    return jobDefinition;
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.management.JobDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.