(Quick Reference)
update-unit-test-controller-update
Purpose
The
update-unit-test-controller-update
generates all the unit tests for the controller
update
method.
Examples
grails update-unit-test-controller-update Person
grails update-unit-test-controller-update "*"
Description
Given at least one domain class, this command creates unit tests for the controller
update
method. The command will generate the following file:
test/unit/{package}/{domainClass}ServiceUpdateTests.groovy
Usage:
grails update-unit-test-controller-update [domainClass]
Arguments:
domainClass
- Either a domain class name (case-sensitive) without its package or a wildcard (*). If you specify the wildcard the artifacts will be generated for all domain classes.