Commit Graph
53 Commits
Author SHA1 Message Date
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
2011-04-03 17:45:20 +00:00
Sam Brannen d63dba327d [SPR-6184] Updated TODOs.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4165 50f2f4bb-b051-0410-bef5-90022cba6387
2011-04-03 17:23:57 +00:00
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
2011-04-03 17:22:43 +00:00
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
2011-04-03 17:20:02 +00:00
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
2011-04-03 16:37:24 +00:00
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
2011-04-03 14:37:29 +00:00
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
2011-03-30 23:50:19 +00:00
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
2011-03-29 23:42:59 +00:00
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
2011-03-29 23:38:37 +00:00
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
2011-03-28 21:45:14 +00:00
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
2011-03-28 14:43:01 +00:00
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
2011-02-08 22:50:45 +00:00
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
2010-03-19 12:57:17 +00:00
Juergen Hoeller e054e8cd6b fixed test failures
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3102 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-12 20:55:44 +00:00
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
2010-03-12 20:44:41 +00:00
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
2010-02-23 17:43:00 +00:00
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
2009-11-09 11:51:30 +00:00
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
2009-10-26 13:38:59 +00:00
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
2009-10-26 13:00:04 +00:00
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
2009-10-06 21:10:06 +00:00
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
2009-10-05 22:08:01 +00:00
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
2009-09-13 13:55:34 +00:00
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
2009-09-07 21:03:32 +00:00
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
2009-09-01 17:33:29 +00:00
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
2009-08-28 17:28:25 +00:00
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
2009-08-28 09:23:02 +00:00
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
2009-07-21 11:03:59 +00:00
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
2009-07-20 09:35:33 +00:00
Sam Brannen b9f726f7aa [SPR-5916] polishing.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1550 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-16 13:50:54 +00:00
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
2009-07-11 16:45:48 +00:00
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
2009-07-10 11:45:31 +00:00
Andy Clement f4a52f32b3 SPR-5906: test and fix for using expressions in property list keys and values
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1485 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-07 20:13:18 +00:00
Sam Brannen bcc57cf59a [SPR-5640] polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1479 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-06 19:24:34 +00:00
Sam Brannen 4f9c1bf118 [SPR-5640] Added support for marking the test application context as 'dirty' after each test method within a given test class via the new DirtiesContext.classMode() attribute.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1477 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-06 19:17:16 +00:00
Sam Brannen aa84e3a83b [SPR-4702] Explicit tests for TestExecutionListener's new beforeTestClass() and afterTestClass()} lifecycle callback methods with TestNG support classes.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1474 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-06 15:08:06 +00:00
Sam Brannen a9c12b58bf [SPR-4702] Explicit tests for TestExecutionListener's new beforeTestClass() and afterTestClass()} lifecycle callback methods.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1473 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-06 14:48:27 +00:00
Sam Brannen edab801f88 [SPR-4702] Added support for @DirtiesContext at the test class level.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1471 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-06 12:58:56 +00:00
Sam Brannen 4ec91c47c3 Polishing: suppressing warnings.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1470 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-05 21:29:28 +00:00
Sam Brannen 5d53a1845b [SPR-5889] Renaming TestNG tests from *Tests_ back to *Tests, but keeping @org.junit.Ignore to exclude them from the JUnit test run.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1463 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-03 09:57:19 +00:00
Sam Brannen 753f2ed8cf Updated copyright.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1208 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-17 10:22:40 +00:00
Sam Brannen 227fe9afd4 Spring TestContext Framework autowiring tests now include an explicit test for the @Autowired-@Qualifier combination.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1207 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-17 10:22:03 +00:00
Sam Brannen 545a704833 [SPR-5713] Added 'value' alias for @ContextConfiguration's 'locations' attribute.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1088 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-05 07:37:14 +00:00
Sam Brannen 075c28f8e1 [SPR-5710] Subclasses of SpringJUnit4ClassRunner can now override the default ContextLoader class via the new getDefaultContextLoaderClassName(Class) method.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1086 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-02 23:24:48 +00:00
Sam Brannen 4da2be7e7a [SPR-5145] Improved test suite for SpringJUnit4ClassRunner: added specific unit tests for test timeouts, repeated tests, and expected exceptions.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1077 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-29 21:29:53 +00:00
Keith Donald f48f1a1222 deleted old test data source factory
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1057 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-22 21:29:47 +00:00
Keith Donald 0898f09f97 test datasource factory initial commit; needs review from Juergen on how to best make DataSource available as a Spring bean when desired
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1042 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-21 21:31:16 +00:00
Juergen Hoeller 458996fdc3 got rid of Commons Collections dependency
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@470 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-18 19:14:49 +00:00
Chris Beams b2f575b032 moving unit tests from .testsuite -> .test, .web.servlet
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@451 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-17 16:28:56 +00:00
Chris Beams 761b389ad8 moving .test.* unit tests from .testsuite -> .test
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@449 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-17 07:32:58 +00:00
Chris Beams 8ece02fe53 moving unit tests from .testsuite -> .orm
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@445 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-17 05:33:45 +00:00