News for hackers. Stuff that matters.
Re:Play Framework 2.0 Final released by lfischer on Tuesday March 13, 2012 @11:46AM (#3698920)
I find that testing has improved quite a bit since actions now return a Result object that you can inspect in your tests. It is true that you cannot inject a mock data repository, for example, but Controllers are meant to be simple HTTP response generators and you might want to make them call some domain object to perform anything complicated. You can then unit test you domain object to your heart’s content.

There are no comments on this comment yet.