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

          dnusbaum Devin Nusbaum created issue -
          dnusbaum Devin Nusbaum made changes -
          Field Original Value New Value
          Description It would be nice for LoggerRule to provide methods so that log contents can easily be checked in tests. 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 made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            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: