Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Added groovy assertions to Javadocs for Collection methods, e.g.:
/** * Sums the items in a collection. This is equivalent to invoking the * "plus" method on all items in the collection. * <pre class="groovyTestCase">assert 1+2+3+4 == [1,2,3,4].sum()</pre> * * @param self Collection of values to add together * @return The sum of all of the items * @since 1.0 */
The patch includes a TestSuite that will execute the code inside the pre tag to ensure that the assertions hold.
Attachments
Attachments
Issue Links
- supercedes
-
GROOVY-3913 Automated testing of Groovy assertions in javadoc comments
- Closed