Edit: Not JUnit 4 available at this time.
Hi there,
I have a question about \"smart\" exception testing with JUnit. At this time, I do it like this:
The most concise syntax is provided by catch-exception:
public void testGet() {
SoundFileManager sfm = new SoundFileManager();
... // setup sound file manager
verifyException(sfm, RapsManagerException.class)
.getSoundfile(-100);
verifyException(sfm, RapsManagerException.class)
.getSoundfileByName(new String());
}