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

FailFast mode for unit tests

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.RC1, 3.0.0
    • Component/s: camel-test
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Is it possible to create a "fail fast" unit test for apache camel?

      I'm using MockEndpoint in camel unit tests, provide some expectations like message count. And do a call to assertIsSatisfied.

      This waits until success or timeout, so if an exchange fails, my test waits for timeout extending the duration. For most tests it's true that a failed exchange means the test will fail. It would be nice that it fails fast - after throwing the exception and not waiting for timeout. For reference please check: https://stackoverflow.com/questions/47202346/fail-fast-apache-camel-unit-test/47225454#47225454

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              antidote2 Robert Half
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: