Friday, November 20, 2009

Want to unit test your Statis classes? Power Mock to the Rescue

While reading through some articles on dzone i stumbled upon this google project which allows you to test your static methods. Now i have used easy mock which i integrated to our current project. But easy mock does not allow you to test static classes. It basically creates mock methods based on the interface you pass into it. This on the other hand will allow you to test your static methods which i believe is a very useful piece of tool for a developer. The project can be found here.

No comments:

Post a Comment