Questions tagged [munit]

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.

It allows mule developers to automate mule app testing in an easy manner.

151 questions
0
votes
4 answers

how to load mule-app.properties while writing MUnit

I am writing an MUnit and the port of HttpListerner is mentioned in mule-app.properties file. it is not getting loaded when i load the flow using getConfigResources. is there anything else that I need to do?
Renjith
  • 1,122
  • 1
  • 19
  • 45
0
votes
1 answer

How do you validate outbound properties using MUnit XML?

I am setting some outbound properties in the message prior to sending the payload to a JMS queue, and I wanted to test that those properties are properly set in the message prior to sending it out to the JMS queue. I thought about using an MUnit Spy…
jcb
  • 195
  • 1
  • 4
  • 20
0
votes
1 answer

MUnit test fails - Cannot process event as "getCSVAccountsFlow" is stopped MULE_ERROR-166

I created a flow that has an input of a csv file, then uses DataWeave to transform to JSON and then loops through each records and logs the payload - simple, works fine. I then created the following MUnit using the getResources method of the Mock…
gohmer
  • 55
  • 1
  • 13
0
votes
2 answers

mvn clean test is failing for Mule Munit test cases

I am running mvn clean test command on Mule Mnuit test cases. I end up with an API incompatibility error: [ERROR] Failed to execute goal com.mulesoft.munit.tools:munit-maven-plugin:1.0.0:test (test) on project sunguard-session: Execution test of…
Ram Bavireddi
  • 1,139
  • 1
  • 19
  • 43
0
votes
1 answer

Mule MUnit FTP Server Schema Definition

I'm trying to use the MUnit FTP Server located here: https://docs.mulesoft.com/mule-user-guide/v/3.7/munit-ftp-server Several of the examples reference a ftpserver namespace but don't provide the definition of the schema. For…
dustin.schultz
  • 13,076
  • 7
  • 54
  • 63
0
votes
1 answer

Mule Munit Test cases not running from Maven command line

I have written an Munit test for one of my flows where database insertion is there. Below is the flow:
Ram Bavireddi
  • 1,139
  • 1
  • 19
  • 43
0
votes
1 answer

Mule Munit Test cases are not working for a RAML based project

I am facing a strange scenario while writing Munit test cases in Mule. I have successfully written couple of Munit test cases for maven based sample Mule project and the test cases are running fine. When it comes to a project where I used RAML, and…
Ram Bavireddi
  • 1,139
  • 1
  • 19
  • 43
0
votes
1 answer

How to use regular expression in Mule MUnit java test attribute withValue

I have java Munit test in which I am verifying call to like this: verifyCallOfMessageProcessor("outbound-endpoint") .ofNamespace("file") .withAttributes(attribute("path").withValue("/data/local/"), …
Charu Khurana
  • 4,511
  • 8
  • 47
  • 81
0
votes
1 answer

Build message with inbound properties in MUnit

I am trying to unit test a groovy component.
Sudarshan
  • 8,574
  • 11
  • 52
  • 74
0
votes
1 answer

how to add munit support in eclipse

I know this link adds munit support in Studio http://studio.mulesoft.org/r4/munit but is there another plugin for eclipse? Confirming as it specifically says Studio plugin
Charu Khurana
  • 4,511
  • 8
  • 47
  • 81
0
votes
1 answer

Is there a way to mock Mule SAP outbound endpoint?

How to mock Mule SAP outbound endpoint calling a BAPI function and expecting synchronous response back? Is there a library? I am using Mule 3.4.2
Charu Khurana
  • 4,511
  • 8
  • 47
  • 81
0
votes
1 answer

Munit test case fails when trying to mock sfdc endpoint

I am trying to mock an sfdc-endpoint .But in my actual flow this endpoint return some value.When i am trying to return any value through mocking this endpoint it is throwing an exception as: org.mule.api.MessagingException: Execution of the…
Anurag
  • 65
  • 2
  • 13
0
votes
1 answer

Spy and verifyCallOf message processors for flow-ref in munit

Can a spy or verifyCallOf message processors be used on flow-ref? We have a flow as follows: ........ ........ ... I am unable to use spy or…
Arun Rahul
  • 565
  • 1
  • 7
  • 24
-1
votes
1 answer

Munit issue Error creating bean with name muleNotificationManager

java.lang.RuntimeException: org.mule.api.config.ConfigurationException: Error creating bean with name '_muleNotificationManager': FactoryBean threw exception on object creation; nested exception is…
-1
votes
1 answer

Munit cannot create inner bean

caused by: org.mule.api.MuleRuntimeException: Failed to lookup beans of type interface org.mule.api.construct.FlowConstruct from the Spring registry at…
Yeshwanth Y
  • 11
  • 1
  • 1
1 2 3
10
11