May 4, 2019 : Mexico City Online Mulesoft Meetup - Quality
Code with MUNIT
Mexico City
All contents © MuleSoft Inc.
What’s all about?
2
• A group from the community to the
community.
• A safe environment to learn and share
your integration experiences both good
and bad with your peers.
• Discuss a variety of topics key to
successful application network with
MuleSoft Anypoint Platform.
All contents © MuleSoft Inc.
Agenda
3
• 07:00pm Introductions
• 7:15pm Announcement about Mulesoft Connect 2020
• 07:30pm Delivering Quality Code with MUNIT
• 8:30pm Q/A
Introductions
All contents © MuleSoft Inc.
Introductions
5
• Meet the leader:
• Studies in Computer Engineering.
Started working with Mulesoft about a
3 years ago. Found my self very
excited about the API and micro-
services world.
• Experience in different industries as.
• Financial Services (Banking)
• Fintechs
• E-commerce
• Mulesoft trainer
• Certifications:
• API Design Associate
• API Developer Associate
• Courses:
• Advanced Developer
• Architecture: Application Networks
• Architecture: Integration Solutions
Alan Muñoz
All contents © MuleSoft Inc.
Introductions
6
• Meet the leader:
• Studies in Control and Automation
Engineering
• Four years working with Mulesoft
• I’m not a robot
• I’ve worked with clients in Mexico,
Panamá, Colombia, Chile and US as
Mulesoft developer, technical leader
and architect.
• Certifications:
• MCD – API Design Associate
(RAML 0.8)
• MCD – Integration and API
Associate
Ricardo Rodríguez
All contents © MuleSoft Inc.
Introductions
7
• Meet the leader:
• Began Mule and Salesforce journey 4
years ago
• Experience in Financial, Products and
Telecom industry
• 10x Salesforce Certified
• MuleSoft Certified Developer & Architect
Aaron Araiza
All contents © MuleSoft Inc.
MuleSoft CONNECT Digital is a live virtual experience — bringing
you a full program of educational sessions and content, streamed
online for free.
AMER: May 20, 2020
EMEA: June 4, 2020
JAPAC: June 25, 2020
Register for free: https://connect.mulesoft.com
All contents © MuleSoft Inc.
Meet the MuleSoft Community at:
- Our digital community booth
- Q&A sessions with MuleSoft Ambassadors
- Our special Developer Meetup
JOIN ONLINE FOR FREE:
AMER: May 20, 2020
EMEA: June 4, 2020
JAPAC: June 25, 2020
Register: https://connect.mulesoft.com
All contents © MuleSoft Inc.
Introductions
10
• Meet the speaker:
• I studied a career on Administrative
Computer Systems
• I’ve worked as developer, integration
specialist and lately in architecture
• I have experience as java developer
and fullstack developer, but in recent
year I have focused more on
integrations using Mulesoft
• I started working with Mulesoft about
4 years and a half ago, I started using
Mulesoft CE
• Certified as:
• Integration and API Associate (MCD)
• Mulesoft Certified Developer – Level 1
(Mule 4)
Juan Carlos
Bucio
Delivering Code Quality with MUnit
MUnit
All contents © MuleSoft Inc.
What is MUnit?
12
• Introduction:
– MUnit is a Mule application testing framework.
– It provides a full suite of integration and unit test capabilities and is fully
integrated with Maven.
– It allows you to easily build automated tests for your integrations and APIs
– MUnit version 2.2, works with all Mule versions since 4.0
All contents © MuleSoft Inc.
With MUnit you can:
13
• Create your test by writing Mule code
• Mock processors
• Spy any processor
• Verify processor calls
• Enable or ignore particular tests
• Tag tests
• Check visual coverage in Studio
• Generate coverage reports
All contents © MuleSoft Inc. 14
• MUnit is divided in two main sub modules:
– MUnit
– MUnit Tools
MUnit Sub Modules
All contents © MuleSoft Inc. 15
• Set Event – set a mule events
• After Suite – runs After executing Munit
Test Suite
• After Test - runs After executing Munit
Test
• Before Suite – runs Before executing
Munit Test Suite
• Before Test - runs Before executing Munit
Test
• Test – add new Test
MUnit Module
All contents © MuleSoft Inc. 16
• Assert That - validate the state of a Mule
event’s content
• Fail - allows you to fail your test on purpose
• Mock when - allows you to mock an event
processor.
• Verify call - allows you to mock an event
processor.
• Spy - allows you to spy what happens before
and after an event
MUnit Tools Module
All contents © MuleSoft Inc. 17
• MUnit provides a set of utilities for you to write your tests in a
portable way and mock external system connections from your tests.
MUnit Utils
All contents © MuleSoft Inc. 18
Create MUnit Tests
• Right-click on the flow> Munit>Create new Munit
All contents © MuleSoft Inc. 19
MUnit Scopes
All contents © MuleSoft Inc.
How to Run a Munit Test
20
• right click on the Munit test and Run Munit test
Lets do the practice!
Q&A
All contents © MuleSoft Inc.
Sourvey – Get one of three vouchers for
a course on the training platform
See you next time
Please send topic suggestions to the organizer
Mexico City Online Mulesoft Meetup - Quality Code with MUNIT - May 4, 2020

Mexico City Online Mulesoft Meetup - Quality Code with MUNIT - May 4, 2020

  • 1.
    May 4, 2019: Mexico City Online Mulesoft Meetup - Quality Code with MUNIT Mexico City
  • 2.
    All contents ©MuleSoft Inc. What’s all about? 2 • A group from the community to the community. • A safe environment to learn and share your integration experiences both good and bad with your peers. • Discuss a variety of topics key to successful application network with MuleSoft Anypoint Platform.
  • 3.
    All contents ©MuleSoft Inc. Agenda 3 • 07:00pm Introductions • 7:15pm Announcement about Mulesoft Connect 2020 • 07:30pm Delivering Quality Code with MUNIT • 8:30pm Q/A
  • 4.
  • 5.
    All contents ©MuleSoft Inc. Introductions 5 • Meet the leader: • Studies in Computer Engineering. Started working with Mulesoft about a 3 years ago. Found my self very excited about the API and micro- services world. • Experience in different industries as. • Financial Services (Banking) • Fintechs • E-commerce • Mulesoft trainer • Certifications: • API Design Associate • API Developer Associate • Courses: • Advanced Developer • Architecture: Application Networks • Architecture: Integration Solutions Alan Muñoz
  • 6.
    All contents ©MuleSoft Inc. Introductions 6 • Meet the leader: • Studies in Control and Automation Engineering • Four years working with Mulesoft • I’m not a robot • I’ve worked with clients in Mexico, Panamá, Colombia, Chile and US as Mulesoft developer, technical leader and architect. • Certifications: • MCD – API Design Associate (RAML 0.8) • MCD – Integration and API Associate Ricardo Rodríguez
  • 7.
    All contents ©MuleSoft Inc. Introductions 7 • Meet the leader: • Began Mule and Salesforce journey 4 years ago • Experience in Financial, Products and Telecom industry • 10x Salesforce Certified • MuleSoft Certified Developer & Architect Aaron Araiza
  • 8.
    All contents ©MuleSoft Inc. MuleSoft CONNECT Digital is a live virtual experience — bringing you a full program of educational sessions and content, streamed online for free. AMER: May 20, 2020 EMEA: June 4, 2020 JAPAC: June 25, 2020 Register for free: https://connect.mulesoft.com
  • 9.
    All contents ©MuleSoft Inc. Meet the MuleSoft Community at: - Our digital community booth - Q&A sessions with MuleSoft Ambassadors - Our special Developer Meetup JOIN ONLINE FOR FREE: AMER: May 20, 2020 EMEA: June 4, 2020 JAPAC: June 25, 2020 Register: https://connect.mulesoft.com
  • 10.
    All contents ©MuleSoft Inc. Introductions 10 • Meet the speaker: • I studied a career on Administrative Computer Systems • I’ve worked as developer, integration specialist and lately in architecture • I have experience as java developer and fullstack developer, but in recent year I have focused more on integrations using Mulesoft • I started working with Mulesoft about 4 years and a half ago, I started using Mulesoft CE • Certified as: • Integration and API Associate (MCD) • Mulesoft Certified Developer – Level 1 (Mule 4) Juan Carlos Bucio
  • 11.
    Delivering Code Qualitywith MUnit MUnit
  • 12.
    All contents ©MuleSoft Inc. What is MUnit? 12 • Introduction: – MUnit is a Mule application testing framework. – It provides a full suite of integration and unit test capabilities and is fully integrated with Maven. – It allows you to easily build automated tests for your integrations and APIs – MUnit version 2.2, works with all Mule versions since 4.0
  • 13.
    All contents ©MuleSoft Inc. With MUnit you can: 13 • Create your test by writing Mule code • Mock processors • Spy any processor • Verify processor calls • Enable or ignore particular tests • Tag tests • Check visual coverage in Studio • Generate coverage reports
  • 14.
    All contents ©MuleSoft Inc. 14 • MUnit is divided in two main sub modules: – MUnit – MUnit Tools MUnit Sub Modules
  • 15.
    All contents ©MuleSoft Inc. 15 • Set Event – set a mule events • After Suite – runs After executing Munit Test Suite • After Test - runs After executing Munit Test • Before Suite – runs Before executing Munit Test Suite • Before Test - runs Before executing Munit Test • Test – add new Test MUnit Module
  • 16.
    All contents ©MuleSoft Inc. 16 • Assert That - validate the state of a Mule event’s content • Fail - allows you to fail your test on purpose • Mock when - allows you to mock an event processor. • Verify call - allows you to mock an event processor. • Spy - allows you to spy what happens before and after an event MUnit Tools Module
  • 17.
    All contents ©MuleSoft Inc. 17 • MUnit provides a set of utilities for you to write your tests in a portable way and mock external system connections from your tests. MUnit Utils
  • 18.
    All contents ©MuleSoft Inc. 18 Create MUnit Tests • Right-click on the flow> Munit>Create new Munit
  • 19.
    All contents ©MuleSoft Inc. 19 MUnit Scopes
  • 20.
    All contents ©MuleSoft Inc. How to Run a Munit Test 20 • right click on the Munit test and Run Munit test
  • 21.
    Lets do thepractice!
  • 22.
  • 23.
    All contents ©MuleSoft Inc. Sourvey – Get one of three vouchers for a course on the training platform
  • 25.
    See you nexttime Please send topic suggestions to the organizer