Using a codec in a Grails unit test

This is a small issue, but I encountered it and found a solution on the mailing lists, so I thought I’d document it here. I was demonstrating a trivial Grails application in class today and decided to unit test it. The app has a single controller, called WelcomeController: [sourcecode language=”groovy”] class WelcomeController { def index… Read More