When writing unit tests you often need to check to see if a method throws a particular type of exception under a particular set of conditions.
In the package org.springframework.test there is a handy helper class to help you do this.
Codenew… more »