Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you use Java, EasyMock makes this a non-issue.

I have found that with a test framework like EasyMock, you no longer have to jump through so many of these goofy tdd hoops. You can mock methods, return values, thrown exceptions, parameters to methods to another object inside a method, etc. It still doesn't warrant writing crap code using anti-patterns, but nevertheless, it makes life more bearable by putting the focus back on the logic at hand and less on trying to follow the tdd mantra of design.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: