AnsweredAssumed Answered

13 Activiti 5.0.rc1 JUnit4  Test Cases FAILED in Grails

Question asked by limcheekin on Nov 2, 2010
Latest reply on Aug 30, 2011 by limcheekin
Hi there,

I am ported the Activiti examples to JUnit4 styles, but 13 test cases are FAILED.

Given activiti.cfg.xml file:
<activiti-cfg process-engine-name='activiti-engine-test'>
  <database type='h2' schema-strategy='create-if-necessary'>
    <jdbc url='jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000' driver='org.h2.Driver' username='sa' password='' />
  </database>
  <job-executor activate='false' />
  <mail server='localhost' port='5025' default-from='username@yourserver.com' />
</activiti-cfg>

Test Results:
Running 48 unit tests…
Running test org.activiti.examples.bpmn.receivetask.ReceiveTaskTest…PASSED
Running test org.activiti.examples.bpmn.gateway.ExclusiveGatewayTest…PASSED
Running test org.activiti.examples.bpmn.gateway.ParallelGatewayTest…PASSED
Running test org.activiti.examples.bpmn.mail.EmailServiceTaskTest…PASSED
Running test org.activiti.examples.bpmn.subprocess.SubProcessTest…PASSED
Running test org.activiti.examples.bpmn.scripttask.ScriptTaskTest…PASSED
Running test org.activiti.examples.bpmn.event.timer.BoundaryTimerEventTest…PASSED
Running test org.activiti.examples.bpmn.servicetask.MethodExpressionServiceTaskTest…PASSED
Running test org.activiti.examples.bpmn.servicetask.ExpressionServiceTaskTest…PASSED
Running test org.activiti.examples.bpmn.servicetask.JavaServiceTaskTest…PASSED
Running test org.activiti.examples.bpmn.eventlistener.EventListenerTest…
                    testEventListenersOnAllPossibleElements…FAILED
Running test org.activiti.examples.bpmn.usertask.taskcandidate.TaskCandidateTest…PASSED
Running test org.activiti.examples.bpmn.usertask.taskassignee.TaskAssigneeTest…PASSED
Running test org.activiti.examples.bpmn.usertask.FinancialReportProcessTest…PASSED
Running test org.activiti.examples.bpmn.callactivity.CallActivityTest…
                    testOrderProcessWithCallActivity…FAILED
Running test org.activiti.examples.bpmn.expression.UelExpressionTest…PASSED
Running test org.activiti.examples.mgmt.ManagementServiceTest…
                    testTableCount…FAILED
Running test org.activiti.examples.mgmt.TablePageQueryTest…
                    testGetTablePage…FAILED
                    testGetSortedTablePage…FAILED
Running test org.activiti.examples.task.StandaloneTaskTest…PASSED
Running test org.activiti.examples.processdefinitions.ProcessDefinitionsTest…
                    testGetProcessDefinitions…FAILED
                    testDeployIdenticalProcessDefinitions…FAILED
Running test org.activiti.examples.taskforms.TaskFormsTest…
                    testTaskFormsWithVacationRequestProcess…FAILED
                    testTaskFormUnavailable…FAILED
Running test org.activiti.examples.identity.IdentityTest…PASSED
Running test org.activiti.examples.pvm.PvmTest…PASSED
Running test org.activiti.examples.variables.jpa.JPAVariableTest…
                    testStoreJPAEntityAsVariable…FAILED
                    testIllegalEntities…FAILED
                    testQueryJPAVariable…FAILED
                    testUpdateJPAEntityValues…FAILED
Running test org.activiti.examples.variables.VariablesTest…PASSED
Tests Completed in 68428ms …
——————————————————-
Tests passed: 35
Tests failed: 13
——————————————————-

Attached here is the test-reports and source code of the test cases for your reference:
[attachment=0]test-reports.zip[/attachment]
[attachment=1]activiti-examples-test-cases.zip[/attachment]

Any ideas why the 13 tests failed?

Regards,
Chee Kin

Outcomes