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
Introduce ActiveProfilesResolver in the TestContext framework [SPR-10338] #14972
Michail Nikolaev, yes, feel free to submit a pull request for the implementation.
However, I would recommend that you wait until after Spring Framework 3.2.2 has been released in order to reduce the complexity of possible merge conflicts.
Prior to this commit, the active bean definition profiles to use when
loading an ApplicationContext for tests could only be configured
declaratively (i.e., via hard-coded values supplied to the 'value' or
'profiles' attribute of @ActiveProfiles).
This commit makes it possible to programmatically configure active bean
definition profiles in tests via a new ActiveProfileResolver interface.
Custom resolvers can be registered via a new 'resolver' attribute
introduced in @ActiveProfiles.
Overview of changes:
Introduced a new ActiveProfilesResolver API.
Added a 'resolver' attribute to @ActiveProfiles.
Updated ContextLoaderUtils.resolveActiveProfiles() to support
ActiveProfilesResolvers.
Documented these new features in the reference manual.
Added new content to the reference manual regarding the
'inheritProfiles' attribute of @ActiveProfiles
Removed the use of <lineannotation> Docbook markup in the testing
chapter of the reference manual for Java code examples in order to
allow comments to have proper syntax highlighting in the generated
HTML and PDF.
You'll notice that I unfortunately wasn't able to merge your pull request directly due to significant changes in the 4.0 (i.e., master) branch; however, I was still able to use a lot of your code (albeit with some rather tedious copying-n-pasting ;)).
Also, your thorough unit and integration tests were especially helpful.
Activity
spring-projects-issues commentedon Feb 27, 2013
Michail Nikolaev commented
Looks like it is not time-critical issue :) Could I try to contribute the implementation?
spring-projects-issues commentedon Feb 27, 2013
Sam Brannen commented
Michail Nikolaev, yes, feel free to submit a pull request for the implementation.
However, I would recommend that you wait until after Spring Framework 3.2.2 has been released in order to reduce the complexity of possible merge conflicts.
spring-projects-issues commentedon Mar 5, 2013
Michail Nikolaev commented
Pull request:
#246
if it is hard to merge, i'll resubmit it later
spring-projects-issues commentedon Apr 23, 2013
Michail Nikolaev commented
Have you any thoughts - will this issue moved to 4.0 M1?
Thanks.
spring-projects-issues commentedon Jun 15, 2013
Sam Brannen commented
Completed as described in comments for GitHub commit 044f51283b:
spring-projects-issues commentedon Jun 15, 2013
Sam Brannen commented
Michail Nikolaev, thanks for all of your hard work!
You'll notice that I unfortunately wasn't able to merge your pull request directly due to significant changes in the 4.0 (i.e., master) branch; however, I was still able to use a lot of your code (albeit with some rather tedious copying-n-pasting ;)).
Also, your thorough unit and integration tests were especially helpful.
Cheers,
Sam
spring-projects-issues commentedon Jun 15, 2013
Michail Nikolaev commented
Thanks for your work, your help and attention.