Hirantha
Hirantha

Reputation: 337

Debuging Mule sub-flow using Java

I am new to Mule. Recently I started to work with Mule. There, I want to write a test class to debug a mule behavior for particular subflow. Mule configuration file contain lots of beans.

Without mocking all the beans, is there a way to isolate the particular sub-flow and test it with real data?

I tried the things mentioned in the https://docs.mulesoft.com/mule-user-guide/v/3.6/testing-strategies. But it given spring bean creation error when I execute my test class.

Upvotes: 1

Views: 138

Answers (2)

Manik Magar
Manik Magar

Reputation: 1401

There is no difference in testing flow vs sub-flow using Mule MUnit framework. Check this post and you can replace flow with sub-flow: https://unittesters.com/blog/mule-munit-testing-variables-properties/

Upvotes: 2

duddukurimd
duddukurimd

Reputation: 30

we can do the testing with Munit in anypoint studio, check with the below doc and it might help you

Muinit

Upvotes: 1

Related Questions