Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-M2
-
Fix Version/s: None
-
Component/s: Testing
-
Labels:None
-
Environment:Windows XP
Description
The domain class:
class User implements Serializable { String username static hasMany = [permissions: String] }
and the test:
@TestFor(User)
class UserTests {
void testAddToPermissions() {
def u = new User(username: 'bob').addToPermissions('user:list').save()
assert u.permissions
}
}
Throws:
| Failure: testAddToPermissions(foo..UserTests) |
| groovy.lang.MissingMethodException: No signature of method: foo.User.addToPermissions() is applicable for argument types: (java.lang.String) values: [user:list] Possible solutions: getPermissions() |
Issue Links
- Trackbacks
-
Technical Debt
Testing Issues # The unit tests appear to fail when cleaning up mocks in unit tests and this breaks other tests with errors such as "no more calls expected" when the mock should not even be in scope. This needs to be addressed....
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits