Groovy
  1. Groovy
  2. GROOVY-5139

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 2.0-beta-1
    • Fix Version/s: 1.8.6, 2.0-beta-3
    • Component/s: None
    • Labels:
      None
    • Flags:
      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.

      1. GROOVY-5139.patch
        22 kB
        Colin Harrington

        Activity

        Colin Harrington created issue -
        Colin Harrington made changes -
        Field Original Value New Value
        Attachment GROOVY-5139.patch [ 57886 ]
        Jochen Theodorou made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.8.6 [ 18245 ]
        Fix Version/s 2.0-beta-3 [ 18244 ]
        Assignee Paul King [ paulk ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12734063 ] Default workflow, editable Closed status [ 12745853 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971571 ] Default workflow, editable Closed status [ 12979407 ]

          People

          • Assignee:
            Paul King
            Reporter:
            Colin Harrington
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development