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

Add utility methods to LoggerRule for easier testing

    Details

    • Similar Issues:

      Description

      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"))

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: