Tags: testing

Spring JUnit test to assert test for exceptions

October 14th, 2008
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. new AssertThrows… more »