This is the example code for [my blog post on different strategis for testing exceptions in Java]. [my blog post on different strategis for testing exceptions in Java]: http://desserud.org/?p=253
Due to how the example is constructed, one of the tests will fail if you attempt to build the whole project. This is somewhat annoying, but is meant a starting point to investigate whether the test is actually checking what you want.
Copyright (c) 2014, Hans Joachim Desserud
Released under the BSD 2-Clause License. See LICENSE for details.