org.codehaus.groovy.grails.plugins.testing
[Groovy] Class GrailsMockErrors
java.lang.Object
org.springframework.validation.BeanPropertyBindingResult
org.codehaus.groovy.grails.plugins.testing.GrailsMockErrors
class GrailsMockErrors
extends BeanPropertyBindingResult
A simple Spring Errors implementation that adds support for Groovy-
style access to field errors. For example, if you have a mocked
domain instance "dc", then you can get the error code for a field
"name" by using this code:
dc.errors["name"]
ERROR_CODE_TABLE
static final java.lang.Object ERROR_CODE_TABLE
-
GrailsMockErrors
GrailsMockErrors(java.lang.Object instance)
-
isEmpty
java.lang.Object isEmpty()
-
propertyMissing
java.lang.Object propertyMissing(java.lang.String name)
-
Groovy Documentation