MuleSoft

MUnit in MuleSoft

Introduction What is MUnit? MUnit is a Mule application testing framework that allows you to easily build automated tests for your integrations and APIs. Why use MUnit? 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. With MUnit […]

MuleSoft

Handling Error Scenarios and Externalizing Input and Assert Expressions in MUnit

Objective: We are going to write test cases for the scenarios where the flow is going to throw errors. The application we are going to test is Database configuration Query Database Postman Request and response Error handler “transform messages” DB:CONNECTIVITY   MULE:ANY Step 1: Select the flow you want to test (“lookup-based-on-customer-name”) then right-click on […]

MuleSoft

A Guide to Batch Processing in MuleSoft

Introduction: Batch Job Lifecycle:It has three phases: –Batch Job has three phases: – 1.Load and dispatch phase 2.Process phase 3.On complete phase 1.Load and dispatch phase: – 2.Process phase: – 3.On complete phase: – Batch Job Components: – Batch Job: – Configuration: – Name: – Batch job name Max Failed Records: – this value defines […]

MuleSoft

Call Java methods with DataWeave

Introduction Given Mule’s foundation on Java and Spring, robust integration capabilities exist for invoking Java methods within Mule. Various methods are available to achieve this, with one effective approach being the utilization of the Java Component. This blog explores this method to call custom Java classes and covers: Invoking a static method on a given […]

MuleSoft

Snowflake Database Configuration In MuleSoft

Snowflake connector configuration In this blog, we will discuss how can we create a developer trail account in Snowflake and create a MuleSoft Snowflake connection configuration. By following below steps: Creating a Snowflake developer account. Configuration of custom database and schema. Configuration of MuleSoft Snowflake connection. Demo on select and insert opeartions Step 1: Creating […]