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

ContextTestSupport's tearDown will through NPE, if the exception is thrown from the setup method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 1.4.0, 1.5.0, 1.6.0, 2.0-M1
    • 1.6.1, 2.0-M2
    • None
    • None

    Description

      PaxExam container will call the tearDown method finally, if the after method throws exception,
      the orginal exception (which is thrown by setUp method or the test method) will be overrided..

      ContextTestSupport's tearDown method will through NPE, if the exception is thrown from the setup method
      We need to check the reference of context and template first before we can their stop method.

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: