Don’t write useless Junit tests

This may seem obvious, but many JUnit tests are written that don’t really test anything useful.

Don’t write tests cases for code that’s too simple to fail on its own: that would be a waste of time. You’re supposed to write tests that test your application code, not the test framework or the compiler.

Share This | Comments | Permalink | Trackback | Comments feed

Post a comment

(required)
(required)
Close
E-mail It