March 03, 2006

JUnit Exception Pattern

Brian Oxley shows a cool pattern for JUnit tests when wanting to deal with Exceptions. I like the throwing of the IllegalArgumentException as opposed to the traditional NullPointerException. Keep those for unforeseen problems.

Posted by Josh at March 3, 2006 08:18 AM