create User domain and integration tests
Summary and best practices
These are some of the best practices covered in this chapter:
■ Use domain-driven design.Create your basic domain model classes as the
first step in your application, and use scaffolding to get them online.
This will help you stay motivated and understand your domain better.
■ Learn the basic modeling options well. You’ll spend a lot of time
setting up Grails models in your future development work. Take the time
to learn all the basic relationship types presented in this chapter. The
test cases will give you valuable experimentation fodder.
■ Use tests to experiment. Domain model test cases provide a great way
of experi-menting with tricky save() scenarios and testing out your
validations