Sam Brannen
59dea815c7
[SPR-7326] Added unit tests to verify proper semantics of TestContext's cache key generation.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4442 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
d0368e1f1c
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4440 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
137353b2c2
Suppressing warnings for deprecation of SimpleJdbcTemplate; polishing JavaDoc; using TestNG assertions in TestNG tests.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4438 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
06b6d0a908
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4437 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
dba7795ed7
[SPR-6184] AnnotationConfigContextLoader now defines "$ContextConfiguration" as the resource suffix for generated default @Configuration class names.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4436 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
03b79452a9
[SPR-6184] AnnotationConfigContextLoader now defines "$ContextConfiguration" as the resource suffix for generated default @Configuration class names.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4435 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
b986a8f32b
[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
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4421 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
4497a9ad8d
[SPR-7960][SPR-8386] First draft of SmartContextLoader SPI, MergedContextConfiguration, and ContextConfigurationAttributes.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4416 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
b6a38353ba
[SPR-7960] Trimming profiles for good measure.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4400 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
42bc8518db
[SPR-7960] Renamed @ActivateProfiles to @ActiveProfiles and fleshed out JavaDoc.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4399 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
5e669b45d7
[SPR-7960] Renamed resolveActivatedProfiles() to resolveActiveProfiles().
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4397 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
7a63437224
[SPR-7960] resolveActivatedProfiles() now resolves a unique set of activated profiles
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4396 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
4218599fa5
[SPR-7960] No longer tracking empty activated profiles.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4394 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
675b6d0d33
[SPR-7960] Initial support for @ActivateProfiles in tests.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4386 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
833e85d991
[SPR-6184] added tests to verify support for @Configuration classes with TestNG; simplified existing TestNG tests using Spring 3.0 and 3.1 features.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4206 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
98346213c1
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4205 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
689016f074
[SPR-6184] additional sanity check tests analogous to those developed for [SPR-3896].
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4204 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
5d0c5f7698
[SPR-6184] Introduced ResourceType enum for context loaders; documented tests.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4199 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
190da51082
[SPR-6184] Implemented recursive search for configuration classes; introduced LocationsResolver strategy in ContextLoaderUtils with ResourcePathLocationsResolver and ClassNameLocationsResolver implementations.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4168 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
29c33bcd7d
[SPR-6184] Refactored internals of ContextLoaderUtils; @Ignore'd broken test.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4166 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
d63dba327d
[SPR-6184] Updated TODOs.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4165 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
9d601f8504
[SPR-6184] Added DefaultConfigClassInheritedTests to verify proper recursive search for configuration classes configured via @ContextConfiguration . This test is currently failing (as expected) and therefore @Ignore'd.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4164 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
619ac47b00
Removed unnecessary declaration of @TestExecutionListeners .
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4163 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
f4d500dfeb
[SPR-6184] Introduced ResourceTypeAwareContextLoader interface and removed dependency on AnnotationConfigContextLoader in TestContext.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4161 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
f2c2fed6e1
[SPR-6184] AnnotationConfigContextLoader now generates a default configuration class name; fleshed out documentation of AnnotationConfigContextLoader; introduced sub-package and suite for configuration class tests.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4158 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
d20150b0d5
[SPR-6184] AnnotationConfigContextLoader now extends AbstractGenericContextLoader; added new extension points to AbstractGenericContextLoader.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4141 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
8c4a19caf8
[SPR-6184] Initial draft of the new AnnotationConfigContextLoader.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4132 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
80e0a5b8a5
[SPR-6184] Initial draft of the new AnnotationConfigContextLoader.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4131 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
c9ae95c578
[SPR-6184] Work in Progress
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4129 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
00c3ca6c3f
[SPR-8030] AbstractJUnit38SpringContextTests and AbstractTransactionalJUnit38SpringContextTests are now officially deprecated.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4116 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
0146bf787a
Suppressing warnings, polishing JavaDoc, etc.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3965 50f2f4bb-b051-0410-bef5-90022cba6387
15 years ago
Sam Brannen
a59bad673d
[SPR-6918] Now verifying support for @Value in conjunction with the Spring TestContext Framework.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3118 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
e054e8cd6b
fixed test failures
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3102 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
630ecacac9
@Transactional qualifiers work in unit tests as well (SPR-6892)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3100 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Sam Brannen
eb32403fcd
[SPR-6879] @DirtiesContext is now an @Inherited annotation.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3033 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Costin Leau
c5a0c30f75
SPR-6194
...
+ add setter for servlet minor version to MockServletContext
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2296 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Sam Brannen
b3f3c03505
[SPR-6124] Verified that timed transactional tests fail with the TestNG integration in the TestContext framework.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2182 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Sam Brannen
751f80d1bb
[SPR-6128] Verified that claims raised in this issue no longer apply.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2181 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Sam Brannen
084ef7ce58
Now verifying support for @Named as well.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2057 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
3a7c2ffa6b
SpringJUnit4ClassRunnerAppCtxTests now verifies seamless support for using @Inject in addition to @Autowired , etc.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2053 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
c0d38136cc
[SPR-6104] @TestExecutionListeners now supports a 'listeners' alias for its existing 'value' attribute.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1872 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
aca7cf4c58
[SPR-4643] SpringJUnit4ClassRunner now optionally calls JUnit 4.7's BlockJUnit4ClassRunner.withRules() method using reflection in order to provide backward compatibility with JUnit 4.5 and 4.6.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1835 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
5e9f8ac4ce
Including HibernateSessionFlushingTests in the suite.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1795 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
f2a3b079ad
[SPR-6011] SpringJUnit4ClassRunner once again supports collective timeouts for repeated tests.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1786 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
94b16a169b
Added assertPersonCount() functionality for increased robustness.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1784 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
a3e99abeb7
[SPR-5315][SPR-5699] Reverted changes to TransactionalTestExecutionListener: transactions are no longer automatically flushed before rolling back.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1569 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
2d1d61cb0f
[SPR-5916] ContextLoader class is now inherited from class hierarchy if not specified explicitly via @ContextConfiguration's loader attribute on the current test class.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1561 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
b9f726f7aa
[SPR-5916] polishing.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1550 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
27b6c0d7cc
[SPR-5699] Investigating issues surrounding automatic flushing of the underlying ORM tool's session via TransactionalTestExecutionListener.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1519 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Sam Brannen
c4b5960c13
[SPR-5914] ProfileValueUtils now properly ensures that class-level usage of @IfProfileValue overrides method-level usage.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1507 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago