If a failure occurs in AbstractTestNGSpringContextTests.springTestContextAfterTestMethod()
, that means that the failure occurred in an afterTestMethod()
method within a configured TestExecutionListener
.
If you're using DbUnit via a custom TestExecutionListener
, then you likely need to check the stack trace or the log to see what happened.
Setting the log level to DEBUG
for org.springframework.test.context
should shed some light on the story. For example, at DEBUG log level, you should see quite a bit of log messages that include the TestContext
, and for each one you will see the testClass
and testMethod
properties. That will let you know which method was executing when the error occurs.
Regards,
Sam (author of the Spring TestContext Framework)