Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1860

Mock endpoint - add before methods for whenExchangeReceived to better simulate errors

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0-M3
    • 2.0.0
    • camel-core
    • None

    Description

      The callbacks is invoked after the mock have registered and receive it. We need a pair of methods to be invoked beforehand so you can simulate errors by thrown an exception.

      This will also let the index version work with redelivery as the index will stay the same.

      And I will rename the regular methods to use after in the name so its easier to distinguish the before/after callbacks.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: