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

Be more override-friendly in CamelTestSupport by returning interface type instead of concrete impl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 3.0.0
    • camel-test
    • None
    • Patch Available
    • Novice

    Description

      CamelTestSupport has a
      protected JndiRegistry createRegistry()
      method.

      It would be better if it returned the Generic type Registry instead - that way you can override the method and return a SimpleRegistry for your tests without having to do this in createCamelContext() which defats createRegistry's purpose.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davidkarlsen@gmail.com David J. M. Karlsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: