(Quick Reference)
create-unit-test-service-create
Purpose
The
create-unit-test-service-create
generates all the unit tests for the service
create
method.
Examples
grails create-unit-test-service-create Person
grails create-unit-test-service-create "*"
Description
Given at least one domain class, this command creates unit tests for the service
create
method. The command will generate the following file:
test/unit/{package}/{domainClass}ServiceCreateTests.groovy
Usage:
grails create-unit-test-service-create [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.