Hi,
I have been trying to use ExpectedException and Test(expected=NullPointerException.class) annotations, in order to indicate to my JUnit test to expect an exception to be thrown from a test function. Prior to deriving from AbstractTransactionalDataSourceSpringContextTests, my test worked fine, but since i started deriving from this class, my test fails. I have checked and my function still throws the excepction, but it is not regarded as expected.
is the use of ExpectedException annotation not supported with AbstractTransactionalDataSourceSpringContextTests?
thank you,
shahar.


Reply With Quote