Sign in to edit and +1 items.
Login required
Download

Domain Expectations

(1)
Author(s) Ross Niemi
Current Release 0.6.1   (1 year ago)
Grails Version 1.1
Tags testing 
Dependency
compile ":domain-expectations:0.6.1"
A test framework that allows you to test your domain/command constraints by defining expectations within a unit test or integration test.
Last updated by Ross Niemi 2 years ago
grails install-plugin domain-expectations
Last updated by jbarmash 3 years ago

About

The Grails Domain Expectations Plugin is a Grails plugin which was written to help make developers' lives easier when writing domain constraints in a Test Driven Development (TDD) fashion.

When writing a test using the Grails Domain Expectations Plugin, a developer expresses their intent by stating an expectation. An expectation is comprised of the name of the property to be affected, the constraint to be applied, and the parameter value(s) which are necessary for the constraint to work.

Goals

The primary goals of this plugin are:

  • Ensure continuity between your domain specification and domain class implementation (unit)
  • Ensure continuity between your domain specification and domain entity implementation (integration)
If you always generate your data model from your domain classes then the first goal will be sufficient. However, if you can't generate your data model from source because you are either working with a legacy database or you are supporting a production Grails application, then the second goal becomes really important.

Documentation

Official Documentation and examples can be found here:

https://www.lone-cyprus.com/main/Grails_Domain_Expectations_Plugin

Last updated by admin 3 years ago
Last updated by admin 3 years ago