Camel
  1. Camel
  2. CAMEL-4160

MockEndpoint - Add options to only keep X first / last messages

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      If you use mock endpoints they keep a copy of the exchange send to it. But if you test using a lot of messages (eg lets say 500.000) then that takes up much memory.

      So in some cases it may be desireable to just say only keep X number of messages (keepFirst=10&keepLast=10) to keep the first 10 and last 10 messages.

      The name of the options could maybe be something more appropriate.

      When using these options there may be some assertions that is not possible. But thats an acceptable tradeoff when you just want to use mocks to say, okay I expect at least 250000 messages here. And the first message should be like this, and the last message should be like that. etc.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development