Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1-beta-1
-
None
Description
Using Grails 0.5 HEAD, a MockFor demand where the closure references a static property of the class causes expectation violations:
mockDomain.demand.setStatus(1)
{ assertEquals AuthenticationUser.STATUS_VALID, it }Where mockDomain is an instance of AuthenticationUser, this fails because there is no expected call to getSTATUS_VALID, STATUS_VALID being a static final property on the domain class.
Attachments
Issue Links
- is superceded by
-
GROOVY-4026 MockFor and StubFor improvements
- Closed