O'Reilly logo

Activiti 5.x Business Process Management Beginner's Guide by Irshad Mansuri, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – unit testing to see the result

Now we will test the business process that we created. For this, we will have to perform the following steps:

  1. Right-click on the SimpleLeaveProcess.bpmn file and browse to Activiti | Generate unit test, as shown in the following screenshot:
    Time for action – unit testing to see the result
  2. On performing the previous step, a test class file is created in src/test/java package, as shown in the following screenshot:
    Time for action – unit testing to see the result
  3. In the ProcessTestMyProcess.java file, replace the code with the following:
    @Test public void startProcess() throws Exception { RepositoryService ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required