SlideShare a Scribd company logo
Presented By
Sindhu VL
 MUnit is a Mule application testing framework
that allows you to easily build automated
tests for your integrations and APIs. It
provides a full suite of integration and unit
test capabilities, and is fully integrated with
Maven and Surefire for integration with your
continuous deployment environment.
 Create your Mule test by writing Mule code
 Create your Mule test by writing Java code
 Disable flow inbound endpoints
 Disable endpoint connectors
 Mock outbound endpoints
 Mock message processors
 Create not only unit tests but also integration
tests in a local environment —MUnit allows
you to start a local FTP/SFTP, DB server or
mail server
 Call the Mule client from Mule code
 Assert flow exceptions
 Spy any message processor
 Verify message processor calls
 Enable or disable particular tests
 See assertion/error reports with Mule stack
trace
 Extend the MUnit framework with plugins
 Check visual coverage in Studio
 Debug your tests with Studio
 MUnit is divided among several sub modules.
From a user’s point of view there are only two
that are really important. Both modules are
compatible amongst themselves.
 The important sub modules are:
MUnit Version Mule MUnit Support
Version
1.0.x 3.6.x, 3.7.x
1.1.x 3.6.x, 3.7.x
 The Mule MUnit Support module is meant to
follow Mule ESB releases:
Mule MUnit Support
Version
Mule ESB Version
3.6.x 3.6.0 to 3.6.x
3.7.x 3.7.0 to 3.7.x
 MUnit is fully integrated with Anypoint Studio,
allowing you to create, design and run MUnit
tests just like you would Mule applications.
You can also use Anypoint Studio’sStudio
Visual Debugger to debug your MUnit tests.
 MUnit is fully integrated with Anypoint Studio.
You can use Studio’s graphical interface to:
 Create and design MUnit tests
 Run your tests
 View test results and coverage
 Debug your tests
 The base of the MUnit Framework consists
of MUnit Test Suite files. These files are
the.xml files located under
the src/test/munit folder in your Mule
application’s folder structure. Each MUnit
Test Suite file is a collection of MUnit tests. It
is meant to work on its own, and should be
able to run independently from any other
MUnit test suite files.
 An MUnit test suite file should contain any
combination of the following components:
 Imports
 Bean Definitions
 Before/After Suites
 Before/After Tests
 MUnit Tests
ThankYou!!!!!!!

More Related Content

PPTX
Azure DevOps
PPTX
Azure API Management
PDF
How to implement DevOps in your Organization
PPTX
Azure DevOps CI/CD For Beginners
PDF
Deploy 22 microservices from scratch in 30 mins with GitOps
PPTX
Best Practices for API Security
PDF
Getting Started with Infrastructure as Code
PPTX
Let's Talk About: Azure Networking
Azure DevOps
Azure API Management
How to implement DevOps in your Organization
Azure DevOps CI/CD For Beginners
Deploy 22 microservices from scratch in 30 mins with GitOps
Best Practices for API Security
Getting Started with Infrastructure as Code
Let's Talk About: Azure Networking

What's hot (20)

PPTX
Azure AKS
PPTX
Aws iam best practices to live by
PDF
Azure Arc Overview from Microsoft
PDF
Infrastructure as Code
PDF
Azure Training + Certification Guide.pdf
PDF
TechnicalTerraformLandingZones121120229238.pdf
PDF
Introduction to Istio on Kubernetes
PDF
Packer by HashiCorp
PPTX
MILLIONS EVENT DELIVERY WITH CLOUD PUB / SUB
PDF
KubeCon EU 2022: From Kubernetes to PaaS to Err What's Next
PPTX
DevOps introduction
PPTX
Azure Cloud Adoption Framework + Governance - Sana Khan and Jay Kumar
PPTX
Modern CI/CD Pipeline Using Azure DevOps
PDF
Introduction to Kubernetes Workshop
PPTX
Virtualization, Containers, Docker and scalable container management services
PPTX
Azure Container Services
PPTX
Quality Assurance/Testing Overview & Capability Deck
PDF
Ansible - Introduction
PPTX
Docker: From Zero to Hero
PDF
Azure Resource Manager (ARM) Templates
Azure AKS
Aws iam best practices to live by
Azure Arc Overview from Microsoft
Infrastructure as Code
Azure Training + Certification Guide.pdf
TechnicalTerraformLandingZones121120229238.pdf
Introduction to Istio on Kubernetes
Packer by HashiCorp
MILLIONS EVENT DELIVERY WITH CLOUD PUB / SUB
KubeCon EU 2022: From Kubernetes to PaaS to Err What's Next
DevOps introduction
Azure Cloud Adoption Framework + Governance - Sana Khan and Jay Kumar
Modern CI/CD Pipeline Using Azure DevOps
Introduction to Kubernetes Workshop
Virtualization, Containers, Docker and scalable container management services
Azure Container Services
Quality Assurance/Testing Overview & Capability Deck
Ansible - Introduction
Docker: From Zero to Hero
Azure Resource Manager (ARM) Templates
Ad

Viewers also liked (20)

PPTX
Mule esb parts
PPTX
Mule esb
PPTX
Mule requestor component
PPTX
Xslt attributes
PPTX
Quartz connector mule
PPTX
Mule fundamentals
PPTX
Mule concepts
PPTX
Error handling with respect to mule
PPTX
Encrption in mule
PPTX
Bindings of components in mule
PPTX
Configuration patterns in mule
PPTX
Content based routing tutorial in mule
PPTX
Using maven with mule
PPTX
Mule debugging
PPTX
Flows and subflows in mule
PPTX
Mule testing
PPTX
Debugging mule
PPTX
Testing mule
PPTX
Component bindings in mule
PPTX
Xslt mule
Mule esb parts
Mule esb
Mule requestor component
Xslt attributes
Quartz connector mule
Mule fundamentals
Mule concepts
Error handling with respect to mule
Encrption in mule
Bindings of components in mule
Configuration patterns in mule
Content based routing tutorial in mule
Using maven with mule
Mule debugging
Flows and subflows in mule
Mule testing
Debugging mule
Testing mule
Component bindings in mule
Xslt mule
Ad

Similar to Munit (20)

PPTX
MUnit - Testing Mule
PPTX
Mule m unit
PPTX
Testing mule
PPTX
Introduction to munit
PPTX
Testing in mule
ODP
Mule esb munit
PPTX
MUnit - Introduction
PPTX
Mule testing
PPTX
Introduction to Unit Testing for Mule Flows using Munit(Java) - Part 1
PDF
Mule Meetup Hyderabad - Aug 2020
PPTX
Munit_in_mule_naveen
PPTX
Mule: Munit domain support
PPTX
Introduction to testing mule
PPTX
Mule Testing in Mulesfoft 4.X
PPTX
Unit testing using Munit Part 1
PDF
MuleSoft Online MeetUp 03_11_2020
PPTX
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
PPTX
Mule debugging
PPTX
Mule debugging-sample
PDF
JUnit Testing Framework A Complete Guide.pdf
MUnit - Testing Mule
Mule m unit
Testing mule
Introduction to munit
Testing in mule
Mule esb munit
MUnit - Introduction
Mule testing
Introduction to Unit Testing for Mule Flows using Munit(Java) - Part 1
Mule Meetup Hyderabad - Aug 2020
Munit_in_mule_naveen
Mule: Munit domain support
Introduction to testing mule
Mule Testing in Mulesfoft 4.X
Unit testing using Munit Part 1
MuleSoft Online MeetUp 03_11_2020
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
Mule debugging
Mule debugging-sample
JUnit Testing Framework A Complete Guide.pdf

More from Sindhu VL (18)

PPTX
Mule - error handling
PPTX
Mule - beginners guide
PPTX
Core concepts - mule
PPTX
Core concepts in mule
PPTX
Basics of mule for beginners
PPTX
Mule securing
PPTX
Service orchestration by using flows
PPTX
Using mule configuration patterns
PPTX
Using flows for service orchestration
PPTX
Concepts in mule
PPTX
Enterprise service bus mule
PPTX
Mule errors
PPTX
Groovy component
PPTX
Working of mule
PPTX
Mule esb for beginners
PPTX
Design flows in mule
PPTX
Flows in mule
PPTX
Connectors in mule
Mule - error handling
Mule - beginners guide
Core concepts - mule
Core concepts in mule
Basics of mule for beginners
Mule securing
Service orchestration by using flows
Using mule configuration patterns
Using flows for service orchestration
Concepts in mule
Enterprise service bus mule
Mule errors
Groovy component
Working of mule
Mule esb for beginners
Design flows in mule
Flows in mule
Connectors in mule

Recently uploaded (20)

PDF
Phone away, tabs closed: No multitasking
PPTX
Fundamental Principles of Visual Graphic Design.pptx
PPTX
6- Architecture design complete (1).pptx
PDF
Benefits_of_Cast_Aluminium_Doors_Presentation.pdf
PPT
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
PDF
Africa 2025 - Prospects and Challenges first edition.pdf
PPTX
12. Community Pharmacy and How to organize it
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
PPTX
artificialintelligencedata driven analytics23.pptx
PPTX
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
PDF
High-frequency high-voltage transformer outline drawing
PPT
unit 1 ppt.ppthhhhhhhhhhhhhhhhhhhhhhhhhh
PPTX
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
PPTX
mahatma gandhi bus terminal in india Case Study.pptx
PPTX
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PPT
Machine printing techniques and plangi dyeing
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PDF
SEVA- Fashion designing-Presentation.pdf
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
Phone away, tabs closed: No multitasking
Fundamental Principles of Visual Graphic Design.pptx
6- Architecture design complete (1).pptx
Benefits_of_Cast_Aluminium_Doors_Presentation.pdf
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
Africa 2025 - Prospects and Challenges first edition.pdf
12. Community Pharmacy and How to organize it
pump pump is a mechanism that is used to transfer a liquid from one place to ...
artificialintelligencedata driven analytics23.pptx
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
High-frequency high-voltage transformer outline drawing
unit 1 ppt.ppthhhhhhhhhhhhhhhhhhhhhhhhhh
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
mahatma gandhi bus terminal in india Case Study.pptx
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
Machine printing techniques and plangi dyeing
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
SEVA- Fashion designing-Presentation.pdf
Tenders & Contracts Works _ Services Afzal.pptx

Munit

  • 2.  MUnit is a Mule application testing framework that allows you to easily build automated tests for your integrations and APIs. It provides a full suite of integration and unit test capabilities, and is fully integrated with Maven and Surefire for integration with your continuous deployment environment.
  • 3.  Create your Mule test by writing Mule code  Create your Mule test by writing Java code  Disable flow inbound endpoints  Disable endpoint connectors  Mock outbound endpoints  Mock message processors
  • 4.  Create not only unit tests but also integration tests in a local environment —MUnit allows you to start a local FTP/SFTP, DB server or mail server  Call the Mule client from Mule code  Assert flow exceptions  Spy any message processor  Verify message processor calls
  • 5.  Enable or disable particular tests  See assertion/error reports with Mule stack trace  Extend the MUnit framework with plugins  Check visual coverage in Studio  Debug your tests with Studio
  • 6.  MUnit is divided among several sub modules. From a user’s point of view there are only two that are really important. Both modules are compatible amongst themselves.  The important sub modules are: MUnit Version Mule MUnit Support Version 1.0.x 3.6.x, 3.7.x 1.1.x 3.6.x, 3.7.x
  • 7.  The Mule MUnit Support module is meant to follow Mule ESB releases: Mule MUnit Support Version Mule ESB Version 3.6.x 3.6.0 to 3.6.x 3.7.x 3.7.0 to 3.7.x
  • 8.  MUnit is fully integrated with Anypoint Studio, allowing you to create, design and run MUnit tests just like you would Mule applications. You can also use Anypoint Studio’sStudio Visual Debugger to debug your MUnit tests.
  • 9.  MUnit is fully integrated with Anypoint Studio. You can use Studio’s graphical interface to:  Create and design MUnit tests  Run your tests  View test results and coverage  Debug your tests
  • 10.  The base of the MUnit Framework consists of MUnit Test Suite files. These files are the.xml files located under the src/test/munit folder in your Mule application’s folder structure. Each MUnit Test Suite file is a collection of MUnit tests. It is meant to work on its own, and should be able to run independently from any other MUnit test suite files.
  • 11.  An MUnit test suite file should contain any combination of the following components:  Imports  Bean Definitions  Before/After Suites  Before/After Tests  MUnit Tests