Grails withCriteria testing

Posted by Steve Wall on Stack Overflow See other posts from Stack Overflow or by Steve Wall
Published on 2010-05-24T17:46:33Z Indexed on 2010/05/24 17:51 UTC
Read the original article Hit count: 399

Filed under:
|

Hello, I'd like to test a "withCriteria" closure and am not sure how to go about it. I see how to mock out the withCriteria call, but not test the code within the closure. When running the test that executes the "withCriteria", I keep getting a MissingMethodException, even though the code runs fine under the normal flow of execution. Any ideas? Thanks! Steve

© Stack Overflow or respective owner

Related posts about grails

Related posts about groovy