Juergen Hoeller
450a3d7eee
polishing
2011-12-12 15:04:11 +00:00
Juergen Hoeller
2dba480d9d
used specific SLF4J versions for running the test suites of individual modules (fixing the Hibernate Validator 4.2 upgrade)
2011-12-09 17:53:29 +00:00
Chris Beams
481c8455fd
Upgrade to Hibernate Core 4.0.0.CR7
...
From earlier dependence on 4.0.0.CR4.
Spring 3.1.x will upgrade to Hibernate 4.0.0.Final as soon as possible
after its release.
Pom files have also been updated to 'recommend' use of Hibernate
3.6.0.Final or better (earlier value was 3.3.1.GA).
2011-12-09 13:08:54 +00:00
Juergen Hoeller
263dd559b7
SimpleJdbcTestUtils executeSqlScript properly closes its LineNumberReader after use (SPR-8872)
2011-11-28 13:27:21 +00:00
Chris Beams
a53d592f62
Use 'name' vs 'key' consistently in PropertySource
2011-11-26 05:20:17 +00:00
Rossen Stoyanchev
63e235f215
SPR-8750 Refine 'Content-Type' update in MockHttpServletRequest/Response.
...
The initial solution kept these three in full sync at all times:
contentType field, characterEncoding field, 'Content-Type' header.
That is correct behavior, however it breaks existing tests that rely
on contentType and characterEncoding being equal to exactly what
they were set to.
For example, consider:
response.setContentType("text/plain");
response.setCharacterEncoding("UTF-8");
Ideally both contentType and the 'Content-Type' header would now be
"text/plain;charset=UTF-8". However, existing tests would expect
that contentType is equal to "text/plain".
To avoid breaking existing tests, contentType and characterEncoding
will continue to be equal to exactly what they were set to while
the 'Content-Type' header will always include both the content
type and the charset.
The only exception to this rule is when a 'Content-Type' header
is set explicitly, the contentType and characterEncoding fields will
be updated accordingly, possibly overriding the existing values.
2011-11-17 15:07:15 +00:00
Rossen Stoyanchev
7918810366
SPR-8750 Update MockHttpServletRequest/Response handling of contentType.
...
The Content-Type header and the contentType field in HttpServletRequest/Response
are now always in sync. When a header is added the contentType field is updated
as well and vice versa.
Similarly when the Content-Type header or the contentType field includes a charset
field, the character encoding is updated and vice versa.
2011-11-16 23:28:48 +00:00
Sam Brannen
1beb04cebf
polishing
2011-11-06 17:26:30 +00:00
Sam Brannen
71396ac07b
Polishing JavaDoc
2011-10-09 23:29:59 +00:00
Sam Brannen
5db7cca9a7
[SPR-8240] polishing the "Context management and caching" section of the reference manual and related Javadoc.
2011-09-29 21:36:06 +00:00
Sam Brannen
f6483cad3c
[SPR-8222] Suppressing deprecation warnings for org.junit.internal.runners.model.MultipleFailureException, which has been deprecated in JUnit 4.9.
2011-09-26 11:13:59 +00:00
Sam Brannen
1a34f6459d
[SPR-8644][SPR-8633] introduced failing (ignored) test regarding support for invoking methods that accept var-args.
2011-08-30 14:20:12 +00:00
Sam Brannen
1de71c6e37
[SPR-8222] Upgraded to JUnit 4.9.
2011-08-30 13:16:12 +00:00
Sam Brannen
4d99ddba8a
[SPR-8633] Introduced generic invokeMethod() in ReflectionTestUtils.
2011-08-24 17:26:59 +00:00
Sam Brannen
72da569aa3
[SPR-8386][SPR-8387] Revised Javadoc in the TestContext framework regarding changes in 3.1.
2011-08-20 23:14:20 +00:00
Sam Brannen
381ab6fcc2
[SPR-8627] Deprecated @ExpectedException.
2011-08-20 18:32:37 +00:00
Sam Brannen
960082dbb0
[SPR-8541] Oops! Fixed a minor logic error in DelegatingSmartContextLoader.
2011-08-20 17:52:04 +00:00
Sam Brannen
8ccedd452e
[SPR-8541] Documented DelegatingSmartContextLoader.
2011-08-20 17:45:14 +00:00
Sam Brannen
466c3b4b2a
[SPR-8541] Documented DelegatingSmartContextLoader.
2011-08-20 17:41:29 +00:00
Sam Brannen
87dad65ff0
[SPR-8622] Upgraded to JUnit 4.8.2
2011-08-18 16:06:31 +00:00
Sam Brannen
e16e3a9f60
Fixed source attachments in Eclipse classpath; sorted classpath entries.
2011-08-18 14:17:44 +00:00
Sam Brannen
9a40021f18
[SPR-8386][SPR-8387] Refined logging regarding detection of default resource locations and default configuration classes.
2011-08-13 15:38:45 +00:00
Sam Brannen
a298c2dde8
[SPR-8386][SPR-8387] Redesign of DelegatingSmartContextLoader and the SmartContextLoader SPI:
...
- Removed generatesDefaults() and supports() from the SmartContextLoader SPI and modified the DelegatingSmartContextLoader algorithm accordingly.
- DelegatingSmartContextLoader no longer operates on a list of candidate loaders but rather on explicit instances of GenericXmlContextLoader and AnnotationConfigContextLoader.
- Updated Javadoc regarding DelegatingSmartContextLoader as the new default loader.
- Updated and polished Javadoc regarding changes in 3.1.
- Now enforcing @ContextConfiguration's restriction on declaring locations or classes but not both.
2011-08-13 14:31:00 +00:00
Sam Brannen
367dcf13ce
Suppressing deprecation warnings in MockPageContext.
2011-08-12 15:29:56 +00:00
Juergen Hoeller
8745024969
added getContentAsByteArray() and getContentAsString() methods (SPR-8575); actually implemented forward, include and handlePageException methods
2011-08-02 23:52:54 +00:00
Sam Brannen
672fed621b
Cleaning up unused imports.
2011-07-23 15:23:41 +00:00
Sam Brannen
d0cd678089
[SPR-8387] Added TODO.
2011-07-20 22:22:03 +00:00
Sam Brannen
072271d9e9
[SPR-8549] Documented the equals() method implementation in MergedContextConfiguration.
2011-07-20 22:18:55 +00:00
Sam Brannen
461119973b
[SPR-8387] deleted resolved TODO.
2011-07-20 22:14:23 +00:00
Sam Brannen
8224af1938
[SPR-8549] ContextCache is now keyed by MergedContextConfiguration instead of String; MergedContextConfiguration now implements custom hashCode() and equals() methods and no longer generates a context cache key.
2011-07-20 22:06:05 +00:00
Juergen Hoeller
571535352b
revised Servlet 3.0 based StandardServletMultipartResolver for correct param/file distinction; added multipart content type and headers access to MultipartRequest (dropping the previous header access solution on MultipartFile); MultipartFilter uses a Servlet 3.0 based StandardServletMultipartResolver by default
2011-07-20 20:46:53 +00:00
Sam Brannen
21f3f59cb7
[SPR-8387] Log messages now refer to default detection instead of default generation.
2011-07-20 20:38:02 +00:00
Juergen Hoeller
94ac883eb1
polishing
2011-07-18 21:37:24 +00:00
Sam Brannen
f874ed9790
[SPR-8387] Fleshed out the implementation of DelegatingSmartContextLoader and corresponding tests.
2011-07-17 17:16:12 +00:00
Sam Brannen
e7298a88d6
[SPR-8387] Fixed logic errors in DelegatingSmartContextLoader.processContextConfiguration() and ContextConfigurationAttributes.hasResources().
2011-07-15 20:01:18 +00:00
Sam Brannen
e34fa6abb1
[SPR-8387] Fixed logic error in DelegatingSmartContextLoader.processContextConfiguration().
2011-07-15 19:19:29 +00:00
Sam Brannen
b8624b470c
[SPR-8387] Introduced hasResources() in ContextConfigurationAttributes; plus minor polishing.
2011-07-15 19:03:16 +00:00
Sam Brannen
d2e6f82aa3
[SPR-8387] Fleshing out the implementation of processContextConfiguration() in DelegatingSmartContextLoader.
2011-07-15 17:15:45 +00:00
Sam Brannen
12eb9d7ed6
[SPR-8387] Fleshing out unit tests for DelegatingSmartContextLoader.
2011-07-15 16:12:34 +00:00
Juergen Hoeller
cc725d7e5c
extended Servlet API mocks for Servlet 3.0 forward compatibility as far as possible; made MockHttpServletResponse compatible with Servlet 3.0 getHeader(s) method returning Strings (SPR-8529); added getHeaderValue(s) method to MockHttpServletResponse for raw value access
2011-07-15 14:51:01 +00:00
Juergen Hoeller
18ab057e90
extended Servlet API mocks for Servlet 3.0 forward compatibility as far as possible; made MockHttpServletResponse compatible with Servlet 3.0 getHeader(s) method returning Strings (SPR-8529); added getHeaderValue(s) method to MockHttpServletResponse for raw value access
2011-07-15 14:16:31 +00:00
Juergen Hoeller
3bbefb3e65
fixed getHeaderNames signature
2011-06-28 14:08:47 +00:00
Juergen Hoeller
0371f569ec
added headers support to MultipartFile abstraction
2011-06-27 23:02:13 +00:00
Sam Brannen
8e497d9627
[SPR-8387] polishing
2011-06-26 17:13:09 +00:00
Sam Brannen
4aed64ea4b
[SPR-8387] skeleton for DelegatingSmartContextLoaderTests.
2011-06-26 17:01:32 +00:00
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.
2011-06-26 16:46:18 +00:00
Sam Brannen
19fc2004f5
[SPR-8387] refined logging.
2011-06-26 15:47:30 +00:00
Sam Brannen
4ef895a018
[SPR-8387] Initial draft of the new DelegatingSmartContextLoader.
2011-06-26 15:39:58 +00:00
Sam Brannen
b49d11f84a
[SPR-8387] refined logging for failed generation of defaults; polishing JavaDoc.
2011-06-26 15:36:07 +00:00
Sam Brannen
6fa451733e
[SPR-8386] polishing
2011-06-22 13:21:11 +00:00