use of org.camunda.bpm.engine.impl.ProcessEngineImpl in project camunda-bpm-platform by camunda.
the class EmbeddedProcessApplicationTest method testDeployAppWithCustomEngine.
public void testDeployAppWithCustomEngine() {
TestApplicationWithCustomEngine processApplication = new TestApplicationWithCustomEngine();
processApplication.deploy();
ProcessEngine processEngine = BpmPlatform.getProcessEngineService().getProcessEngine("embeddedEngine");
assertNotNull(processEngine);
assertEquals("embeddedEngine", processEngine.getName());
ProcessEngineConfiguration configuration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration();
// assert engine properties specified
assertTrue(configuration.isJobExecutorDeploymentAware());
assertTrue(configuration.isJobExecutorPreferTimerJobs());
assertTrue(configuration.isJobExecutorAcquireByDueDate());
assertEquals(5, configuration.getJdbcMaxActiveConnections());
processApplication.undeploy();
}
use of org.camunda.bpm.engine.impl.ProcessEngineImpl in project camunda-bpm-platform by camunda.
the class ProcessEngineJobExecutorPerformanceTestCase method setup.
@Override
@Before
public void setup() {
super.setup();
ProcessEngineConfigurationImpl engineConfiguration = ((ProcessEngineImpl) engine).getProcessEngineConfiguration();
jobExecutor = engineConfiguration.getJobExecutor();
jobExecutor.start();
}
Aggregations