Skip to content

Support ApplicationContextInitializers in the TCF #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 0 commits into from
Aug 20, 2012

Conversation

sbrannen
Copy link
Member

  • Added initializers and inheritInitializers attributes to
    @ContextConfiguration.
    • Introduced support for ApplicationContextInitializers in
      ContextConfigurationAttributes, MergedContextConfiguration, and
      ContextLoaderUtils.
    • Introduced resolveInitializerClasses() in ContextLoaderUtils.
    • MergedContextConfiguration stores context initializer classes as a
      Set and incorporates them into the implementations of hashCode() and
      equals().
    • ApplicationContextInitializers are invoked in the new
      prepareContext(GenericApplicationContext, MergedContextConfiguration)
      method in AbstractGenericContextLoader.
    • Updated DelegatingSmartContextLoader to support initializers.
      Specifically, a test class may optionally declare neither XML
      configuration files nor annotated classes and instead declare only
      application context initializers. In such cases, an attempt will
      still be made to detect defaults, but their absence will not result
      an an exception.
    • Documented support for application context initializers in the
      testing chapter of the reference manual.

Issue: SPR-9011

@ghost ghost assigned sbrannen Aug 20, 2012
sbrannen added a commit that referenced this pull request Aug 20, 2012
* SPR-9011:
  Support ApplicationContextInitializers in the TCF
@sbrannen sbrannen merged commit 1f93777 into spring-projects:master Aug 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant