junit « Exception « Spring Q&A

1. Junit4 : expected=Exception not working with SPRING    stackoverflow.com

I'm trying to use the @Test(expected = RuntimeException.class) annotation in order to test for an expected exception. My code is as follows:

@Test(expected = RuntimeException.class)
    public void testSaveThrowsRuntimeException(){


2. RSA JUnit Exception with ApectJ?    forum.springsource.org

RSA JUnit Exception with ApectJ? With RSA (Rational Software Architect) 7.5.4, we use the WAS 7 JDK set at the compliance level of 1.5 and everything runs fine on WAS 7. ...

3. JUnit TestCase throws an Exception    forum.springsource.org

Aug 24th, 2005, 08:34 PM #1 lnader View Profile View Forum Posts Private Message Member Join Date Apr 2005 Posts 49 JUnit TestCase throws an Exception I am trying to write ...