O'Reilly logo

Groovy and Grails Recipes by Bashar Abdul-Jawad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 15Testing

Testing web applications is notorious for being harder than testing other kinds of applications. This is because web applications run in an environment in which the application has access to various specific web objects such as the user's session, HTTP requests, responses, and parameters. So testing the application in isolation can be quite difficult. Moreover, it's usually not easy to mock a web application environment to provide a dummy implementation. Grails makes testing web applications a whole lot easier thanks to its dynamic nature and its use of the highly dynamic Groovy language. Grails enables you to run your tests in a testing environment that simulates a web environment and provides full access to all of Grails' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required