Blogbody Rotating Header Image

Handling Resources in Java

Hani points out one of my pet peeves: people who write code that assumes there is a file system. I won’t restate what he said — but keep in mind that it also makes unit tests harder to get working. In general, the more dependencies your unit tests has (DB, file system, internet access) the harder it is for people to use and thereby they will become less inclined to write tests.

0 Comments on “Handling Resources in Java”

Leave a Comment