class ValidationSpec extends GormDatastoreSpec
Tests validation semantics.
Properties inherited from class | Properties |
---|---|
class GormDatastoreSpec |
CURRENT_TEST_NAME, SETUP_CLASS_NAME, TEST_CLASSES, session, setupClass |
Constructor and description |
---|
ValidationSpec() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
Test beforeValidate gets called on save()() |
|
void |
Test beforeValidate gets called on validate()() |
|
void |
Test beforeValidate gets called on validate() and passing a list of field names to validate() |
|
void |
Test disable validation() |
|
void |
Test that validate is called on save()() |
|
void |
Test that validate works without a bound Session() |
|
void |
Test validate() method() |
|
void |
Test validating an object that has had values rejected with an ObjectError() |
|
void |
Two parameter validate is called on entity validator if it implements Validator interface() |
|
void |
deepValidate parameter is honoured if entity validator implements CascadingValidator() |
|
java.util.List |
getDomainClasses() |
Methods inherited from class | Name |
---|---|
class GormDatastoreSpec |
cleanup, createSession, getDomainClasses, loadSetupClass, setup, setupSpec |