use of org.camunda.bpm.engine.ProcessEngineConfiguration in project camunda-bpm-platform by camunda.
the class ProcessEngineInitializationTest method testCustomDefaultRetries.
public void testCustomDefaultRetries() {
ProcessEngineConfiguration configuration = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("org/camunda/bpm/engine/test/standalone/initialization/customdefaultretries.camunda.cfg.xml");
assertEquals(5, configuration.getDefaultNumberOfRetries());
}
use of org.camunda.bpm.engine.ProcessEngineConfiguration in project camunda-bpm-platform by camunda.
the class JobExecutorTest method testJobExecutorHintConfiguration.
public void testJobExecutorHintConfiguration() {
ProcessEngineConfiguration engineConfig1 = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();
assertTrue("default setting is true", engineConfig1.isHintJobExecutor());
ProcessEngineConfiguration engineConfig2 = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration().setHintJobExecutor(false);
assertFalse(engineConfig2.isHintJobExecutor());
ProcessEngineConfiguration engineConfig3 = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration().setHintJobExecutor(true);
assertTrue(engineConfig3.isHintJobExecutor());
}
use of org.camunda.bpm.engine.ProcessEngineConfiguration 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();
}
Aggregations