Groovy
  1. Groovy
  2. GROOVY-6588

Enhance GroovyAssert for JUnit 4 Support

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3.0-beta-1
    • Component/s: groovy-runtime
    • Labels:
      None

      Description

      Right now, in Groovy 2.2.1, the GroovyAssert class just offers a way to embed shouldFail in JUnit 4 tests. These methods are also used internally by GroovyTestCase.

      This issue is about making GroovyAssert an "official" API class for supporting JUnit 4 integration by providing a bunch of static methods that can be imported, as this is the case with org.junit.Assert.

      For that purpose, the class needs JavaDoc documentation and to be mentioned in the new Groovy language documentation.

      Plus, we would like to move more methods from GroovyTestCase into GroovyAssert. The same way that it was done with shouldFail.

      So this issue consists of writing documentation for GroovyAssert and applying some refactoring on GroovyTestCase.

        Activity

          People

          • Assignee:
            Andre Steingress
            Reporter:
            Andre Steingress
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development