Thursday, April 14, 2005

JUnit ExpectException Assertion

It would be very nice to have a method called assertExpectedException in JUnit. Syntax could be something like the following:

assertExpectedException(ExceptionType, myobject.mymethod());

No comments: