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
Asked
Active
Viewed 480 times
0
-
Can't you just use a test flow serving a pre-baked BAPI response over HTTP? – David Dossot Jul 17 '15 at 21:45
1 Answers
1
Give it a try to MUnit. With it you can do things like:
<mock:when messageProcessor="mule:set-payload">
<mock:with-attributes>
<mock:with-attribute whereValue="#['Real Set Payload']" name="doc:name"/>
</mock:with-attributes>
<mock:then-return payload="#['mocked_payload']"/> (1)
</mock:when>

Víctor Romero
- 5,107
- 2
- 22
- 32