[SPR-7960][SPR-8386] Supporting declarative configuration of bean definition profiles in the TestContext framework:

- TextContext now works with MergedContextConfiguration instead of locations and loader
- TextContext now builds context caching key from MergedContextConfiguration
- Test context caching is now based on locations, classes, active profiles, and context loader
- TextContext now delegates to SmartContextLoader or ContextLoader as appropriate
- AbstractContextLoader now implements SmartContextLoader
- AbstractGenericContextLoader now sets active profiles in the GenericApplicationContext 
- Introduced integration tests for profile support in the TCF for both XML and annotation config
This commit is contained in:
Sam Brannen
2011-06-02 17:51:37 +00:00
parent ab704fdaba
commit 2913964b41
17 changed files with 493 additions and 44 deletions

View File

@@ -15,8 +15,14 @@
<level value="warn" />
</logger>
<logger name="org.springframework.binding">
<level value="debug" />
<logger name="org.springframework.test.context.TestContext">
<level value="warn" />
</logger>
<logger name="org.springframework.test.context.ContextLoaderUtils">
<level value="warn" />
</logger>
<logger name="org.springframework.test.context.support.AbstractGenericContextLoader">
<level value="warn" />
</logger>
<!-- Root Logger -->
@@ -24,5 +30,5 @@
<priority value="warn" />
<appender-ref ref="console" />
</root>
</log4j:configuration>