0

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

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Charu Khurana
  • 4,511
  • 8
  • 47
  • 81

1 Answers1

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