cancel
Showing results for 
Search instead for 
Did you mean: 

13 Activiti 5.0.rc1 JUnit4 Test Cases FAILED in Grails

limcheekin
Champ on-the-rise
Champ on-the-rise
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
13 REPLIES 13

jbarrez
Star Contributor
Star Contributor
If they are in the same folder as the testcase, it cant be that…

Maybe it's the other way around. Can the activiti engine access the classpath of the pojo?

limcheekin
Champ on-the-rise
Champ on-the-rise
Maybe it's the other way around. Can the activiti engine access the classpath of the pojo?

That's I can't tell, how do I find out?

Best regards,
Chee Kin

jbarrez
Star Contributor
Star Contributor
Not very easy I'm afraid.

What happens if you put the pojo in the 'normal (non-test) activiti source code?

limcheekin
Champ on-the-rise
Champ on-the-rise
Not very easy I'm afraid.

What happens if you put the pojo in the 'normal (non-test) activiti source code?

I think it was facing a similar issue as reported by other user at http://code.google.com/p/grails-activiti-plugin/issues/detail?id=16

Best regards,
Chee Kin