(Quick Reference)

create-unit-test-service-list-max

Purpose

The create-unit-test-service-list-max generates all the unit tests for the service list method and max parameter.

Examples

grails create-unit-test-service-list-max Person
grails create-unit-test-service-list-max "*"

Description

Given at least one domain class, this command creates unit tests for the service list method and max parameter. The command will generate the following file:

  • test/unit/{package}/{domainClass}ServiceListMaxTests.groovy

Usage:

grails create-unit-test-service-list-max [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.