You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@ContextConfiguration defined on a base class and a composed annotation do not merge [SPR-13670] #18245
When a test has multiple @ContextConfiguration annotations defined on a base class and a composed annotation then the one defined on the composed annotation is ignored.
I created a small example that illustrates the issue (see reference URL). In this case the TestAppContext defined on the ComposedAnnotation is ignored and therefore the ComposedAnnotationTest fails because the needed bean does not exist.
If the test class is directly annotated with @ContextConfiguration instead of using the ComposedAnnotation it works (see WorkingTest).
Activity
spring-projects-issues commentedon Nov 11, 2015
Sam Brannen commented
This is a duplicate of #17346 and has been addressed in Spring Framework 4.2.
spring-projects-issues commentedon Feb 20, 2017
Réda Housni Alaoui commented
Hello, I am experiencing the same issue in 4.3.0.RELEASE.
@TestExecutionListenersare correctly merged but not@ContextConfiguration.spring-projects-issues commentedon Feb 21, 2017
Réda Housni Alaoui commented
In fact, I have a different issue.
You can close it, sorry. Creating another issue.
spring-projects-issues commentedon Jan 12, 2019
Bulk closing outdated, unresolved issues. Please, reopen if still relevant.