TP3199

Unit Testing in Mule Training

The Unit Testing in Mule Excursion teaches students to create, design, and run automated tests for Mule applications. Students will use this Anypoint Studio tool to write Mule code, minimize manual testing, mock and spy processors, verify processor calls, and generate coverage reports.
Course Details

Duration

2 days

Prerequisites

  • Proficiency working with Anypoint Studio and Anypoint Platform
  • Strong analytical skills
  • Some experience in creating unit testing would be helpful but is not required

Skills Gained

  • Explain the components of MUnit and the MUnit Tools.
  • Define MUnit test scopes and processors.
  • Create an MUnit test from a Mule flow.
  • Create an MUnit test from a blank test.
  • Create an MUnit test using the Test Recorder component.
  • Run an MUnit test or suite.
  • Ignore an MUnit test or suite.
  • MUnit failures and test coverage results
Course Outline
  • MUnit Introduction and Processors
    • MUnit Modules
    • MUnit Scopes
    • Database Utils
    • FTP Utils
    • Processors – MockWhen, ThenReturn, AssertThat, AssertWhen
    • Spy, Validate
  • MUnit Test from a Flow
    • Use Case 1
    • Create an MUnit Test from a Mule Flow
    • Run MUnit Test
    • Run MUnit Suite
    • Test Results Analysis
    • Coverage Report
    • Review Logs
    • MUnit Errors
  • MUnit Blank Test
    • Use Case 2
    • Create an MUnit Test from Blank Test
    • Run MUnit Test
    • Run MUnit Suite
    • Test Results Analysis
    • Coverage Report
    • Review Logs
    • MUnit Errors
  • MUnit Recorder
    • Use Case 3
    • Create an MUnit Test from Blank Test
    • Run MUnit Test
    • Run MUnit Suite
    • Test Results Analysis
  • CI/CD Pipeline
    • MUnit Tests in CI/CD Pipeline
    • Test Report Percentage Settings
    • Failed Deployments