Commit Graph
29 Commits
Author SHA1 Message Date
Sam Brannen a600ccc38c [SPR-5145] Updated reference manual regarding upgrade to JUnit 4.5; additional improvements in the testing chapter as well.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1110 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-06 06:25:03 +00:00
Juergen Hoeller f70e482841 renamed "contextProperties" attribute to "contextParameters" (matching web.xml naming); "contextParameters" contains Servlet/PortletConfig parameters as well; added default "servletContext" and "servletConfig" environment beans; added default "portletContext" and "portletConfig" environment beans; added default web scope "application", wrapping a ServletContext/PortletContext; MockPortletSession supports destruction of session attributes on invalidation
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1094 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-05 12:12:01 +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 144ebcf793 Now parameterizing with <?> where appropriate.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1078 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-30 00:58:08 +00:00
Sam Brannen 24e41d8822 [SPR-5145] Completed migration to JUnit 4.5: SpringJUnit4ClassRunner now extends BlockJUnit4ClassRunner and uses custom Statements; removed obsolete SpringMethodRoadie and SpringTestMethod classes.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1073 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-29 08:21:23 +00:00
Sam Brannen 6d24e650e4 Corrected typos and sorted Eclipse classpath.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1072 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-28 21:45:14 +00:00
Sam Brannen 7f6d65ecf2 [SPR-5145] Adding custom JUnit 4.5 Statements.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1071 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-28 07:29:24 +00:00
Sam Brannen 6c3dd342fe Updated JavaDoc for @TestExecutionListeners.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1068 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-27 22:49:34 +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 99204cbf73 officially deprecated AbstractJpaTests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@981 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-12 21:16:12 +00:00
Juergen Hoeller 8af560b4f4 added "flush()" method to TransactionStatus and TransactionSynchronization interfaces; test context manager automatically flushes transactions before rolling back; general polishing of transaction management code
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@655 50f2f4bb-b051-0410-bef5-90022cba6387
2009-02-19 00:24:05 +00:00
Juergen Hoeller 18e805eac2 polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@652 50f2f4bb-b051-0410-bef5-90022cba6387
2009-02-18 23:51:03 +00:00
Juergen Hoeller 633c97ba00 consistent copies of mocks
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@556 50f2f4bb-b051-0410-bef5-90022cba6387
2009-01-20 18:01:26 +00:00
Juergen Hoeller 81880e175a consistent mock behavior
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@554 50f2f4bb-b051-0410-bef5-90022cba6387
2009-01-19 23:35:42 +00:00
Juergen Hoeller d3ee9dd17f Portlet mocks support Portlet API 2.0
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@539 50f2f4bb-b051-0410-bef5-90022cba6387
2009-01-14 09:34:07 +00:00
Chris Beams e2be4d919c reverting accidentally deleted (in r469) mock/web/* classes
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@473 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-18 22:16:16 +00:00
Juergen Hoeller cd564b27d4 removed dependency on Servlet API mocks
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@469 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-18 19:13:35 +00:00
Chris Beams 410e80fe3c + updated petclinic dependency metadata from junit 4.4->4.5; servlet 2.4->2.5
+ deprecated AssertThrows (slated for complete removal by 3.0 GA)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@466 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-18 18:32:05 +00:00
Chris Beams 2796c55974 Whitespace polishing: leading spaces->tabs; updated eclipse configuration to default to leading tabs for all bundles
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@464 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-18 14:50:25 +00:00
Juergen Hoeller f1446d25ac fixed header value type
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@351 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-05 07:07:06 +00:00
Juergen Hoeller de47460b8e consistent use of model name Strings
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@344 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-27 21:24:42 +00:00
Juergen Hoeller 1a0214e518 updated mocks to Servlet 2.5 and JSP 2.1 API level
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@343 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-27 21:23:23 +00:00
Juergen Hoeller a0dfb69aaa Java 5 code style
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@341 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-27 00:27:52 +00:00
Juergen Hoeller 705c1c6b03 added JUnit 4.5 compatibility note
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@320 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-20 22:28:00 +00:00
Juergen Hoeller 7fbe9b7190 basic JUnit 4.5 compatibility (accepting use of deprecated SPI)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@315 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-20 21:33:08 +00:00
Juergen Hoeller a5253bec7f EL container integration; support for contextual objects; removal of deprecated Spring 2.0 functionality; Java 5 code style
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@305 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-20 02:10:53 +00:00
Arjen Poutsma 65821578e7 Initial import of test module
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@134 50f2f4bb-b051-0410-bef5-90022cba6387
2008-10-27 11:59:27 +00:00