Skip to content

SPR-7827 - first support for meta-annotations in integration test - #219

Closed
giovannidalloglio wants to merge 2 commits into
spring-projects:3.2.xfrom
giovannidalloglio:SPR-7827
Closed

giovannidalloglio wants to merge 2 commits into
spring-projects:3.2.xfrom
giovannidalloglio:SPR-7827

Conversation

@giovannidalloglio

Copy link
Copy Markdown
Contributor

related to issue: https://jira.springsource.org/browse/SPR-7827

prior this commit, there was no support for meta-annotations in the Spring Intergation tests, now the @ContextConfiguration annotation is searched also in meta-annotations.

Eg: you can write:

@ContextConfiguration([...]) // config for HSQLDB environment
public @interface InRamEnvironment
@ContextConfiguration([...]) // config for common-core part
public @interface CommonCoreIntegrationTest
@CommonCoreIntegrationTest
@InRamEnvironment
public class OneBatchTest {

[...] // actual test methods
}

Issue: SPR-7827

prior this commit, there was no support for meta-annotations in the Spring Intergation tests, now the @ContextConfiguration annotation is searched also in meta-annotations.

Eg: you can write:
---------------
@ContextConfiguration([...]) // config for HSQLDB environment
public @interface InRamEnvironment
---------------
@ContextConfiguration([...]) // config for common-core part
public @interface CommonCoreIntegrationTest
---------------
@CommonCoreIntegrationTest
@InRamEnvironment
public class OneBatchTest {

[...] // actual test methods
@giovannidalloglio

Copy link
Copy Markdown
Contributor Author

I'm sorry.

I forget to mention that this is the "correct and working" version of the previously closed pull request # 201 (as referenced by cbeams).

PS I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.

@nealeu

nealeu commented Feb 26, 2013

Copy link
Copy Markdown

Chris, Sam: Any progress on when this'll get merged? It's a sweet feature 👍

@giovannidalloglio

Copy link
Copy Markdown
Contributor Author

This pull request was superseed by #393

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.

3 participants