Home > Uncategorized > Mastering Grails: Mock testing with Grails

Mastering Grails: Mock testing with Grails

October 21st, 2009

In this article, you’ll learn how the mocking capabilities of GrailsUnitTestCase and ControllerUnitTestCase make it easy to unit test Grails artifacts that you’d otherwise assume need to be tested using an integration test. The mockForConstraintsTests(), mockDomain(), and mockLogging() methods all leverage Groovy’s metaprogramming magic to make testing your domain classes, services, and controllers a breeze.
(Link: Mastering Grails: Mock testing with Grails)


Related posts:

  1. Rails vs. Grails vs. Helma: The JVM Web Framework Smackdown, Part 1 | Linux Magazine To test JRoR, Grails, and Helma, let’s build a...
  2. ScreenSketcher – create enlightened user interface mock-ups ScreenSketcher is a tool for creating quick mock-ups, or...
  3. glicious – Delicious Clone in Grails at Github (Link: glicious – Delicious Clone in Grails)...

BrentSordyl Uncategorized , ,

  1. No comments yet.
  1. No trackbacks yet.

Additional comments powered by BackType