Welcome to MSDN Blogs Sign in | Join | Help

Progressive Development

Zany Adventures in Software Engineering with Maven and Motley

Browse by Tags

All Tags » unit testing » mock objects   (RSS)
Sorry, but there are no more tags available to filter with.
Motley says: "If-then-else hooks are the best way to inject mock objects"
Summary Motley: A simple if-then-else hook is the simplest and best way to inject a mock object. Maven: First, you have to design to interfaces. Then, techniques like dependency injection, factories, and endo-testing are more effective ways to inject Read More...
Motley says: "Unit tests take too long to execute, so don't bother"
Summary Motley: Unit tests take too long to execute. I'm not going to bother. Maven: Unit tests need to run quickly - you need to execute them frequently. Mock objects can help. ______________________________ [Context: Motley has been writing unit tests Read More...
Page view tracker