junit munit setup in anypoint studio
TRANSCRIPT
Junit & Munit Setup in Anypoint Studio
JUnit Plugin Setup in Anypoint Studio
There is no specific plugin required to set up Junit.
We can directly use java code to write functional test cases.
While creating the unit test cases for java classes in the project, we need to mock the interfaces instead of connecting to the real systems.
To mock the end systems, need to import the jar by downloading mockito-all-1.8.5.jar or add a dependency in maven
<dependency><groupId>org.mockito</groupId><artifactId>mockito-all</artifactId><version>1.8.5</version>
</dependency>
MUnit Plugin Setup in Anypoint Studio
The steps to be followed to install MUnit plugin in Anypoint Studio
1. Verify that your version of Studio is 5.2.0 or above.
2. Add the MUnit update site
3. Go to Help → Install New Software.
4. Studio displays the Available Software window. In the Work with: field, paste the MUnit update site: http://studio.mulesoft.org/r4/munit
5. Select the Plugin to download and click on Next.
7. Click Next, then complete the installation wizard. MUnit automatically adds a new folder, src/test/munit, to your project as below
Thank You