Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15629 Improve the way we "expect" ERROR messages in tests
  3. SOLR-15807

Add a "LogListener" helper class that makes it easy to inspect & assert expected log messages

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None

    Description

      Following on some of the ideas started/outlined in the parent task...

      we should have an easy way for a block of test code to "intercept" and make assertions about log messages from specific loggers (at specific log levels, matching specific substrings/regexes) that happen as a result of some actions during the test code.

      Attachments

        1. SOLR-15807-2.patch
          40 kB
          Chris M. Hostetter
        2. SOLR-15807-1.patch
          40 kB
          Chris M. Hostetter
        3. SOLR-15807.patch
          33 kB
          Chris M. Hostetter
        4. screenshot-1.png
          34 kB
          Dawid Weiss

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: