Handle NoClassDefFoundError for TestExecutionListeners consistently in the TestContext framework [SPR-11347] #15971
Changes introduced in #15964 cause subclasses of abstract base test classes (i.e.
There are a number of such test classes in Spring Integration that now break due to #15964.
The fact that abstract base test classes pull in
The following code snippet from
In the case of
Backported to: 3.2.7
0 votes, 6 watchers
The text was updated successfully, but these errors were encountered:
Bruce Brouwer commented
I just ran into this as well. Here is my stack trace (from using 4.0.1.BUILD-SNAPSHOT):
Sam Brannen commented
Greg Allen commented
Similar issue trying to run demo.ApplicationTests with an absolutely vanilla spring-boot-starter-parent 1.0.2 project (boot+web+test), when running the test from Eclipse JUnit runner. Java 1.7.
thrown Exception is BeanInstantiationException, but catch block has catch NoClassDefFoundError
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.test.context.transaction.TransactionalTestExecutionListener]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/transaction/annotation/AnnotationTransactionAttributeSource