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
1 answer

Post Deployment Integration Testing in Mule

I have an application for which I have an Integration Test suite written using Munit. I am deploying this to CloudHub Using Jenkins. How can I execute the test cases post-deployment? Is there any command line tool that can I make use of or it can…
vijay dhanakodi
  • 175
  • 1
  • 14
0
votes
1 answer

Mocking SubFlow in Mule

I am trying to create MUnit for the below flow.
MRavindran
  • 447
  • 2
  • 10
  • 24
0
votes
1 answer

Failed to execute goal com.mulesoft.munit.tools:munit-maven-plugin:1.3.2:test

Hello Team, Created munit from APIkit router ,while running a mule maven project along with munit, I am facing Failed to execute goal com.mulesoft.munit.tools:munit-maven-plugin:1.3.2:test (test) error ,without munit I can able to run the project…
Mohan Vamsi
  • 1
  • 1
  • 2
0
votes
3 answers

Mule Munit test with maven : mule-domain-config.xml file not found?

Mule Munit test with maven : mule-domain-config.xml file not found I am getting an error while trying to run Munit using Maven. It's a domain project and my Munit test cases are available in mule projects. when I ran maven, it is giving me file not…
CooperShelly
  • 103
  • 2
  • 6
  • 12
0
votes
1 answer

Anypoint Studio: Test While Running Separate Application

I have two applications in Anypoint Studio, Foo and Bar. The bar stands alone, but Foo has a dependency on Bar (through an HTTP Request). I have already tested Foo as a standalone application using mocks for the calls to Bar. However, I would like…
deckeresq
  • 332
  • 2
  • 14
0
votes
0 answers

Mock SQS Config

I've created a mule application with the following configuration to SQS. This lives in my config.xml file.
Richie
  • 4,989
  • 24
  • 90
  • 177
0
votes
3 answers

Mule munit-runner artefact nit downloaded

I am experiencing an issue with downloading the munit-runner artefact through maven. For some reason the jar is not downloaded. Not for 1.3.2, 1.3.3 or 1.3.4 I have cleaned the repository cash and rebuild but nothing seems to help. The POM file…
rdoetjes
  • 21
  • 2
0
votes
1 answer

MUnit - Mock JMS, DB and HTTP connectors in domain

I have mule services which relies on mule domain for all the connectors (http, db, jms). The problem I am facing is when I write MUnit for a particular service/flow, I am unable to mock the connectors in the DOMAIN project. For example, domain has a…
Eager Dev
  • 1
  • 2
0
votes
3 answers

Mule / Maven Error: Invalid content was found starting with element 'dw:transform-message'

I'm trying to run a project with Maven, using a simple test class, however the test is erroring out (not failing!) with the message: Test set: com.mycompany.myproject.testApiResponseNotNullTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0,…
Mr Angry
  • 184
  • 2
  • 11
0
votes
2 answers

How to test variable in munit

I am trying to test Variable in my munit flow and for this I am using a set-message in munit test case. However, The test fails every time. I guess I am missing something somewhere. Could any one just help me out. Following is my code for…
0
votes
3 answers

Error creating bean with name 'Test_flow': Cannot create inner bean '(inner bean)

I have created simple Test Suit for Test_flow but when I try to run that flow I am getting error. java.lang.RuntimeException: org.mule.api.config.ConfigurationException: Error creating bean with name 'Test_flow': Cannot create inner bean '(inner…
Pramod Raut
  • 677
  • 3
  • 9
  • 22
0
votes
1 answer

Mule - data weave throwing error during munit test, error is There are two transformers that are an exact match for input

The transformation (xml to json) works completely fine during normal run, but when the same flow is being tested using MUnit it fails at dataweave with error message There are two transformers that are an exact match for input: interface…
Himanshu
  • 24
  • 1
  • 8
0
votes
2 answers
0
votes
1 answer

Maven build for Munits - Mule

I am preparing maven for building mule application which contains munits. I am getting below error when i "mvn package" the application. WARN 2016-11-11 09:35:32,415 [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Ignored …
Gana
  • 482
  • 3
  • 11
  • 32
0
votes
1 answer

Using assert-payload option in munit in mule

I'm getting xml file as output while running munit test case for the flow, but to make sure the output is correct or not i want to use assert payload option in munit. Please help me how can i make sure the code functionality is working properly and…
Ankit Prakash
  • 37
  • 1
  • 7