Camel
  1. Camel
  2. CAMEL-6029

Add test support classes for unit testing components

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.11.0
    • Fix Version/s: 3.0.0
    • Component/s: camel-test
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      (see the 3.0 roadmap )

      No matter what choices and changes we make in the core, many tests in components will start failing. That is because virtually all unit tests in components test much more than the component itself, by setting up routes, etc. A simple thing would be do create something like xyzTestSupport (where xyz in

      {"Component", "Configuration", "Endpoint", "Producer", "Consumer", "Language", etc... }

      ), that test a respective area without setting up routes and possibly use a minimal CamelContext (w/o component discover and/or other features). Moving component unit tests to such a framework is not complicated, a bit tedious, but hopefully we'll benefit (yet again) from community contributions and gain new committers in the process. This is probably the first thing that should be done that will allow us to be more productive with the other improvements. It can also be done in 2.x and won't require any incompatible changes.

        Activity

        Hadrian Zbarcea created issue -
        Claus Ibsen made changes -
        Field Original Value New Value
        Fix Version/s 2.12.0 [ 12323968 ]
        Fix Version/s 3.0.0 [ 12315691 ]
        Fix Version/s 2.11.0 [ 12321695 ]
        Claus Ibsen made changes -
        Fix Version/s 2.12.0 [ 12323968 ]

          People

          • Assignee:
            Hadrian Zbarcea
            Reporter:
            Hadrian Zbarcea
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development