-
Website
http://andrewmccall.com -
Original page
http://andrewmccall.com/2009/07/some-thoughts-on-unit-tests/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Jeremy Tanner
1 comment · 2 points
-
andrewmccall
4 comments · 1 points
-
andrewhyde
1 comment · 5 points
-
-
Popular Threads
1. Never write tests which rely on a resource outside of the code you're testing. i.e. Make mock objects for DAO's and stubs for external resources such as a web service end point.
2. Only test business logic. There's no point writing a test case which tests getters and setters, as you've said, and no point testing that framework you are using does the job it is supposed to do, that should be tested within that framework project itself.