Ejemplo n.º 1
0
  public void testProcessEngineInfo() {

    List<ProcessEngineInfo> processEngineInfos = ProcessEngines.getProcessEngineInfos();
    assertEquals(1, processEngineInfos.size());

    ProcessEngineInfo processEngineInfo = processEngineInfos.get(0);
    assertNull(processEngineInfo.getException());
    assertNotNull(processEngineInfo.getName());
    assertNotNull(processEngineInfo.getResourceUrl());

    ProcessEngine processEngine = ProcessEngines.getProcessEngine(ProcessEngines.NAME_DEFAULT);
    assertNotNull(processEngine);
  }
Ejemplo n.º 2
0
 /**
  * Returns the process engine.
  *
  * @return The process engine
  */
 protected ProcessEngine getProcessEngine() {
   return ProcessEngines.getProcessEngine(config.getEngine());
 }