Search code examples
unit-testingmulemule-studioanypoint-studiomunit

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 to write an MUnit test which will test the full interaction (i.e. no mocking). I thought that running Bar, then running the Foo test would work, but this returns a 500 error every time.

Is it possible to perform a test like this in Anypoint Studio?


UPDATE:

It appears this was a proxy issue. Problem is now resolved.


Solution

  • If you're facing a similar issue, check your proxy settings. I found that I had started Bar, after which my proxy changed, and then I started Bar. As such, they were unable to communicate.