cancel
Showing results for 
Search instead for 
Did you mean: 

5.0.beta1 Activiti Examples (Test Cases) FAILED in Grails

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi,

Majority of the Activiti Examples Test Cases FAILED due to error NullPointerException for runtimeService variable in Grails environment. But this problem only happened in Activiti 5.0.beta1 not 5.0.alpha4 (All tests PASSED). Currently, this issue is blocking the release of Grails Activiti Plugin 5.0.beta1.

It seems like the processEngine variable not initiated properly in ProcessEngineTestCase super class related to loading of activiti.properties file. It is obvious to me that it is environment issue. But I not sure how to fix it. Anyone here have any clue how to solve this problem?

You can download both Activiti Examples 5.0.beta1 and Activiti Examples 5.0.alpha4 at http://code.google.com/p/grails-activiti-plugin/downloads/detail?name=activiti-examples-beta1.zip and http://code.google.com/p/grails-activiti-plugin/downloads/detail?name=activiti-examples-alpha4.zip. You need Grails 1.3.4 installed (can be downloaded at http://grails.org/Download) to run the application (command: "grails test-app unit:")

Below is test result for Activiti Examples 5.0.beta1 for your reference:
Running 37 unit tests…
Running test org.activiti.examples.bpmn.receivetask.ReceiveTaskTest…
                    testWaitStateBehavior…FAILED
Running test org.activiti.examples.bpmn.gateway.ExclusiveGatewayTest…
                    testDecisionFunctionality…FAILED
Running test org.activiti.examples.bpmn.gateway.ParallelGatewayTest…
                    testForkJoin…FAILED
                    testUnbalancedForkJoin…FAILED
Running test org.activiti.examples.bpmn.subprocess.SubProcessTest…
                    testSimpleSubProcess…FAILED
Running test org.activiti.examples.bpmn.scripttask.ScriptTaskTest…
                    testScriptExecution…FAILED
                    testSetVariableThroughExecutionInScript…FAILED
Running test org.activiti.examples.bpmn.event.timer.BoundaryTimerEventTest…
                    testInterruptingTimerDuration…FAILED
Running test org.activiti.examples.bpmn.servicetask.JavaServiceTaskTest…
                    testJavaServiceDelegation…FAILED
Running test org.activiti.examples.bpmn.usertask.taskcandidate.TaskCandidateTest…
                    testSingleCandidateGroup…FAILED
                    testSingleCandidateGroup…FAILED
                    testMultipleCandidateGroups…FAILED
                    testMultipleCandidateGroups…FAILED
                    testMultipleCandidateUsers…FAILED
                    testMultipleCandidateUsers…FAILED
                    testMixedCandidateUserAndGroup…FAILED
                    testMixedCandidateUserAndGroup…FAILED
Running test org.activiti.examples.bpmn.usertask.taskassignee.TaskAssigneeTest…
                    testTaskAssignee…FAILED
Running test org.activiti.examples.bpmn.usertask.FinancialReportProcessTest…
                    testProcess…FAILED
                    testProcess…FAILED
Running test org.activiti.examples.bpmn.callactivity.CallActivityTest…
                    testOrderProcessWithCallActivity…FAILED
Running test org.activiti.examples.bpmn.expression.UelExpressionTest…
                    testValueAndMethodExpression…FAILED
Running test org.activiti.examples.mgmt.ManagementServiceTest…
                    testTableCount…FAILED
                    testGetTableMetaData…FAILED
Running test org.activiti.examples.mgmt.TablePageQueryTest…
                    testGetTablePage…FAILED
                    testGetSortedTablePage…FAILED
Running test org.activiti.examples.task.StandaloneTaskTest…
                    testCreateToComplete…FAILED
                    testCreateToComplete…FAILED
Running test org.activiti.examples.processdefinitions.ProcessDefinitionsTest…
                    testGetProcessDefinitions…FAILED
                    testDeployIdenticalProcessDefinitions…FAILED
Running test org.activiti.examples.taskforms.TaskFormsTest…
                    testTaskFormsWithVacationRequestProcess…FAILED
                    testTaskFormsWithVacationRequestProcess…FAILED
                    testTaskFormUnavailable…FAILED
                    testTaskFormUnavailable…FAILED
Running test org.activiti.examples.identity.IdentityTest…
                    testAuthentication…FAILED
                    testFindGroupsByUserAndType…FAILED
                    testUser…FAILED
                    testGroup…FAILED
                    testMembership…FAILED
Running test org.activiti.examples.pojo.PojoTest…PASSED
Running test org.activiti.examples.spring.SpringAutoDeployTest…PASSED
Running test org.activiti.examples.spring.SpringTransactionIntegrationTest…PASSED
Running test org.activiti.examples.variables.VariablesTest…
                    testBasicVariableOperations…FAILED

Regards,
Chee Kin
12 REPLIES 12

jbarrez
Star Contributor
Star Contributor
Afaik not, the Junit 4 support is there for our end users.
However, for the Grails plugin, is the only consequence that the out-of-the-box tests can't be run? Or is there something else ?

limcheekin
Champ on-the-rise
Champ on-the-rise
Afaik not, the Junit 4 support is there for our end users.
However, for the Grails plugin, is the only consequence that the out-of-the-box tests can't be run? Or is there something else ?

Yes, the only consequence is most out-of-the-box tests failed to run. But I think to run the out-of-the-box tests successfully is important to ensure that nothing is broken for Activiti (based on test cases) in Grails environment. Also, the test cases is important source for developers to learn about Activiti. So, will you re-considered to support JUnit 4?

Wish to hear from you soon!

Regards,
Chee Kin

limcheekin
Champ on-the-rise
Champ on-the-rise
Fyi, I am migrating all example test cases to JUnit4 style for the grails plugin by writing a script to do the migration.

Regards,
Chee Kin