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

ShouldFail does not work with nested exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-rc-2
    • 1.1-rc-3
    • None
    • None

    Description

      If I use the method shouldFail of the GroovyTestCase class I run into the following problem.

      shouldFail(MyException) {...} only works if MyException contains no nested exceptions. If an exception new MyException(new NullpointerException) is thrown, shouldFail makes the test fail, saying that it expects a NullPointerException.

      Attachments

        Activity

          People

            ait Alex Tkachman
            hans_d Hans Dockter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: