Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5139

GroovyTestCase's shouldFail {...} should return the throwable and not the enclosed message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.4, 2.0-beta-1
    • 1.8.6, 2.0-beta-3
    • None
    • None
    • Patch

    Description

      As a part of GroovyTestCase shouldFail should return the entire throwable and not just the enclosed message. There may be other items on the exception that bears inspection, assertion.

      The easy workaround to fix existing code is to tack a '?.message' on existing tests.

      Attachments

        1. GROOVY-5139.patch
          22 kB
          Colin Harrington

        Activity

          People

            paulk Paul King
            laelfrog Colin Harrington
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: