Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-12409

Log context cache statistics in the TestContext framework

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.0 GA
    • Fix Version/s: 3.2.12, 4.0.8, 4.1.2
    • Component/s: Test
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Status Quo

      The Spring TestContext Framework (TCF) has always cached ApplicationContexts loaded for tests; however, it's always been a bit of a black art knowing (or finding out) exactly how many contexts are loaded within a given test suite.

      The information, however, has always been tracked internally within the ContextCache class, and some developers have used reflection to acquire this information. It would therefore be beneficial to many development teams if the context cache statistics were made publicly available, at least as log output.

      Deliverables

      1. Log context cache statistics whenever an ApplicationContext is loaded by the TCF.

        Attachments

          Activity

            People

            Assignee:
            sbrannen Sam Brannen
            Reporter:
            sbrannen Sam Brannen
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 30 weeks, 3 days ago