John Thompson has over 20 years of experience with software development and is currently a Senior Software Engineer with Incept5. For his day job, John spends his time in the trenches helping various Incept5 clients in the financial and retail industries implement Spring centric solutions.
John is an avid triathlete, and currently is spending a lot of time training for his first Half Ironman race this October in Miami. Being a far better cyclist than runner, John has found the St Petersburg location of the Running for Brews running club an excellent motivator to get those runs in. John's favorite running buddy is his 4 year old Vizsla Jake.
Everyone knows controllers can be tricky little buggers to test. Spring MVC Test brought some exciting testing capabilities to Spring 3.2, but it you're left on your own for mocking the service layer in your controllers.
We'll take a look at the Groovy approach of using Spock to unit test your controller interactions with the service layer and Spring MVC Test to unit test controller interactions with the web layer.