Sam Brannen
8e497d9627
[SPR-8387] polishing
15 years ago
Sam Brannen
4cbe2ae00a
[SPR-8387] Introduced supports(MergedContextConfiguration) method in the SmartContextLoader SPI; updated existing loaders accordingly; and fleshed out implementation of and tests for the new DelegatingSmartContextLoader.
15 years ago
Sam Brannen
19fc2004f5
[SPR-8387] refined logging.
15 years ago
Sam Brannen
4ef895a018
[SPR-8387] Initial draft of the new DelegatingSmartContextLoader.
15 years ago
Sam Brannen
b49d11f84a
[SPR-8387] refined logging for failed generation of defaults; polishing JavaDoc.
15 years ago
Sam Brannen
6fa451733e
[SPR-8386] polishing
15 years ago
Sam Brannen
2b5d2e5a0a
[SPR-8386] ContextLoader resolution once again ignores the inheritLocations flag on @ContextConfiguration .
15 years ago
Sam Brannen
102674be20
[SPR-8386] Completed JavaDoc for ContextLoaderUtils regarding the SmartContextLoader SPI.
15 years ago
Sam Brannen
82d09d432e
[SPR-8386] Completed JavaDoc for AnnotationConfigContextLoader regarding the SmartContextLoader SPI.
15 years ago
Sam Brannen
f7a849f9f4
[SPR-8386] AbstractContextLoader now adheres to the SmartContextLoader contract by verifying the existence of generated default resource locations.
15 years ago
Sam Brannen
b00a6ccea5
[SPR-8386] polishing JavaDoc.
15 years ago
Sam Brannen
4b026756ae
[SPR-7960] Documented inheritProfiles attribute of @ActiveProfiles .
15 years ago
Sam Brannen
95ae6344c5
[SPR-8386] refining JavaDoc for MergedContextConfiguration and related classes.
15 years ago
Sam Brannen
4d27cde6b7
[SPR-8386] fleshing out JavaDoc for SmartContextLoader and related classes.
15 years ago
Sam Brannen
427f31cb9c
polishing
15 years ago
Sam Brannen
a77cf0f652
[SPR-8395][SPR-8386] AnnotationConfigContextLoader now generates a list of default configuration classes by finding all non-private, non-final, static, inner classes of the test class that are annotated with @Configuration ; updated JavaDoc in AbstractGenericContextLoader and AnnotationConfigContextLoader to reflect changes resulting from the SmartContextLoader integration.
15 years ago
Sam Brannen
c070a4b0a4
polishing Javadoc
15 years ago
Sam Brannen
46639c5a1d
[SPR-8386] Polishing SmartContextLoader SPI; AnnotationConfigContextLoader now only considers static inner classes annotated with @Configuration as configuration classes.
15 years ago
Sam Brannen
7dd6932910
polishing developer documentation
15 years ago
Sam Brannen
9a56deb283
[SPR-8386] SmartContextLoader enhancements:
...
- introduced processContextConfigurationAttributes() method in SmartContextLoader SPI
- refactored AnnotationConfigContextLoader, AbstractContextLoader, AbstractGenericContextLoader, ContextLoaderUtils, and TestContext implementations to take advantage of the SmartContextLoader SPI, MergedContextConfiguration, and ContextConfigurationAttributes
- deleted ResourceTypeAwareContextLoader
- deleted ContextLoaderUtils.LocationsResolver and implementations
- moved context key generation from TestContext to MergedContextConfiguration
15 years ago
Chris Beams
2d68b726b5
Add syntax highlighting to Javadoc where necessary
...
Issue: SPR-8426
15 years ago
Sam Brannen
9c3c1c64b3
[SPR-8386] polishing JavaDoc
15 years ago
Sam Brannen
dbe96b5cf9
[SPR-7326] MergedContextConfiguration now ensures that it holds non-null arrays with proper semantics for TestContext's cache key generation.
15 years ago
Sam Brannen
3f58da1cd6
[SPR-7326] Added unit tests to verify proper semantics of TestContext's cache key generation.
15 years ago
Sam Brannen
0d4469d8e3
Suppressing warnings for deprecation of SimpleJdbcTemplate; polishing JavaDoc; using TestNG assertions in TestNG tests.
15 years ago
Sam Brannen
39583d23fd
[SPR-6184] AnnotationConfigContextLoader now defines "$ContextConfiguration" as the resource suffix for generated default @Configuration class names.
15 years ago
Sam Brannen
2913964b41
[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
15 years ago
Sam Brannen
ac735d73ac
[SPR-7960][SPR-8386] First draft of SmartContextLoader SPI, MergedContextConfiguration, and ContextConfigurationAttributes.
15 years ago
Sam Brannen
ff2a603f2f
[SPR-7960] Trimming profiles for good measure.
15 years ago
Sam Brannen
24a97805ef
[SPR-7960] Renamed @ActivateProfiles to @ActiveProfiles and fleshed out JavaDoc.
15 years ago
Sam Brannen
3a2afde41d
[SPR-7960] Renamed resolveActivatedProfiles() to resolveActiveProfiles().
15 years ago
Sam Brannen
f64344b296
[SPR-7960] resolveActivatedProfiles() now resolves a unique set of activated profiles
15 years ago
Sam Brannen
6981ee566c
[SPR-7960] No longer tracking empty activated profiles.
15 years ago
Sam Brannen
c7473f9124
[SPR-7960] No longer tracking empty activated profiles.
15 years ago
Sam Brannen
0067618b35
[SPR-7960] Initial support for @ActivateProfiles in tests.
15 years ago
Sam Brannen
f5a39ae7ff
[SPR-7960] Initial support for @ActivateProfiles in tests.
15 years ago
Chris Beams
c51c340881
Update MockEnvironment / MockPropertySource types
...
Reflecting signature changes in getProperty() methods
15 years ago
Sam Brannen
ddc9bbb555
[SPR-6184] Simplifying ContextLoader implmementation:
...
- Removed AbstractGenericContextLoader's createGenericApplicationContext() method.
- AnnotationConfigContextLoader now uses an AnnotatedBeanDefinitionReader instead of working with an AnnotationConfigApplicationContext.
- AnnotationConfigContextLoader now uses the supplied GenericApplicationContext to load configuration classes.
15 years ago
Sam Brannen
68b4687311
[SPR-6184] completed JavaDoc for @ContextConfiguration .
15 years ago
Sam Brannen
a16f3ba9dc
[SPR-6184] completed JavaDoc for AnnotationConfigContextLoader; polished JavaDoc for other concrete context loaders.
15 years ago
Sam Brannen
22072b2414
[SPR-6184] polishing
15 years ago
Sam Brannen
ef79d7cc8a
[SPR-6184] Fleshed out JavaDoc for ResourceTypeAwareContextLoader and ContextLoaderUtils.
15 years ago
Sam Brannen
c50d38ef8d
[SPR-6184] Introduced ResourceType enum for context loaders; documented tests.
15 years ago
Sam Brannen
eba33b6156
polishing
15 years ago
Sam Brannen
4dcc79d6eb
[SPR-6184] Implemented recursive search for configuration classes; introduced LocationsResolver strategy in ContextLoaderUtils with ResourcePathLocationsResolver and ClassNameLocationsResolver implementations.
15 years ago
Sam Brannen
f3d125626d
[SPR-6184] Refactored internals of ContextLoaderUtils; @Ignore'd broken test.
15 years ago
Sam Brannen
5373b43a53
[SPR-6184] Extracted ContextLoader resolution functionality from TestContext into a new ContextLoaderUtils utility class.
15 years ago
Sam Brannen
ad9c858bd2
[SPR-6184] Introduced ResourceTypeAwareContextLoader interface and removed dependency on AnnotationConfigContextLoader in TestContext.
15 years ago
Sam Brannen
a60487655c
polishing JavaDoc
15 years ago
Sam Brannen
744facbf64
[SPR-6184] Simplified AnnotationConfigContextLoader in TestContext.
15 years ago