Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47975

Add utility methods to LoggerRule for easier testing

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • jenkins-test-harness
    • None

      It would be nice for LoggerRule to provide methods so that log contents can easily be checked in tests, i.e.

      assertThat(logRule, recorded(Level.WARN, equalTo("expected log message"))

            dnusbaum Devin Nusbaum
            dnusbaum Devin Nusbaum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: