Testing with JUnit in Mule ESB

JUnit is a framework for implementing unit testing in Java. An open source Java testing framework is used to write and run repeatable automated tests. In JUnit 4.0, we do not need to extend from the JUnit framework to TestCase. Also, there is no need to use the prefix Test with the test method. You can run the test using JUnit4TestAdapter and the @NAME syntax, which already has been introduced. In the Dropbox integration example, you will learn about JUnit 4 and Selenium testing.

Getting ready

Create a new project on Mule to test with JUnit using the following steps:

  1. Open Mule Studio and enter the workspace name as shown in the following screenshot:
  2. To create a new project, go to File | New | Mule Project. Enter the ...

Get Mule ESB Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.