Chris Beams
a53d592f62
Use 'name' vs 'key' consistently in PropertySource
13 years ago
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.
13 years ago
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.
13 years ago
Sam Brannen
1beb04cebf
polishing
13 years ago
Sam Brannen
71396ac07b
Polishing JavaDoc
13 years ago
Sam Brannen
5db7cca9a7
[SPR-8240] polishing the "Context management and caching" section of the reference manual and related Javadoc.
13 years ago
Sam Brannen
f6483cad3c
[SPR-8222] Suppressing deprecation warnings for org.junit.internal.runners.model.MultipleFailureException, which has been deprecated in JUnit 4.9.
13 years ago
Sam Brannen
1a34f6459d
[SPR-8644][SPR-8633] introduced failing (ignored) test regarding support for invoking methods that accept var-args.
13 years ago
Sam Brannen
1de71c6e37
[SPR-8222] Upgraded to JUnit 4.9.
13 years ago
Sam Brannen
4d99ddba8a
[SPR-8633] Introduced generic invokeMethod() in ReflectionTestUtils.
13 years ago
Sam Brannen
72da569aa3
[SPR-8386][SPR-8387] Revised Javadoc in the TestContext framework regarding changes in 3.1.
13 years ago
Sam Brannen
381ab6fcc2
[SPR-8627] Deprecated @ExpectedException .
13 years ago
Sam Brannen
960082dbb0
[SPR-8541] Oops! Fixed a minor logic error in DelegatingSmartContextLoader.
13 years ago
Sam Brannen
8ccedd452e
[SPR-8541] Documented DelegatingSmartContextLoader.
13 years ago
Sam Brannen
466c3b4b2a
[SPR-8541] Documented DelegatingSmartContextLoader.
13 years ago
Sam Brannen
87dad65ff0
[SPR-8622] Upgraded to JUnit 4.8.2
13 years ago
Sam Brannen
e16e3a9f60
Fixed source attachments in Eclipse classpath; sorted classpath entries.
13 years ago
Sam Brannen
9a40021f18
[SPR-8386][SPR-8387] Refined logging regarding detection of default resource locations and default configuration classes.
13 years ago
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.
13 years ago
Sam Brannen
367dcf13ce
Suppressing deprecation warnings in MockPageContext.
13 years ago
Juergen Hoeller
8745024969
added getContentAsByteArray() and getContentAsString() methods (SPR-8575); actually implemented forward, include and handlePageException methods
13 years ago
Sam Brannen
672fed621b
Cleaning up unused imports.
13 years ago
Sam Brannen
d0cd678089
[SPR-8387] Added TODO.
13 years ago
Sam Brannen
072271d9e9
[SPR-8549] Documented the equals() method implementation in MergedContextConfiguration.
13 years ago
Sam Brannen
461119973b
[SPR-8387] deleted resolved TODO.
13 years ago
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.
13 years ago
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
13 years ago
Sam Brannen
21f3f59cb7
[SPR-8387] Log messages now refer to default detection instead of default generation.
13 years ago
Juergen Hoeller
94ac883eb1
polishing
13 years ago
Sam Brannen
f874ed9790
[SPR-8387] Fleshed out the implementation of DelegatingSmartContextLoader and corresponding tests.
13 years ago
Sam Brannen
e7298a88d6
[SPR-8387] Fixed logic errors in DelegatingSmartContextLoader.processContextConfiguration() and ContextConfigurationAttributes.hasResources().
13 years ago
Sam Brannen
e34fa6abb1
[SPR-8387] Fixed logic error in DelegatingSmartContextLoader.processContextConfiguration().
13 years ago
Sam Brannen
b8624b470c
[SPR-8387] Introduced hasResources() in ContextConfigurationAttributes; plus minor polishing.
13 years ago
Sam Brannen
d2e6f82aa3
[SPR-8387] Fleshing out the implementation of processContextConfiguration() in DelegatingSmartContextLoader.
13 years ago
Sam Brannen
12eb9d7ed6
[SPR-8387] Fleshing out unit tests for DelegatingSmartContextLoader.
13 years ago
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
13 years ago
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
13 years ago
Juergen Hoeller
3bbefb3e65
fixed getHeaderNames signature
13 years ago
Juergen Hoeller
0371f569ec
added headers support to MultipartFile abstraction
13 years ago
Sam Brannen
8e497d9627
[SPR-8387] polishing
13 years ago
Sam Brannen
4aed64ea4b
[SPR-8387] skeleton for DelegatingSmartContextLoaderTests.
13 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.
13 years ago
Sam Brannen
19fc2004f5
[SPR-8387] refined logging.
13 years ago
Sam Brannen
4ef895a018
[SPR-8387] Initial draft of the new DelegatingSmartContextLoader.
13 years ago
Sam Brannen
b49d11f84a
[SPR-8387] refined logging for failed generation of defaults; polishing JavaDoc.
13 years ago
Sam Brannen
6fa451733e
[SPR-8386] polishing
13 years ago
Sam Brannen
2b5d2e5a0a
[SPR-8386] ContextLoader resolution once again ignores the inheritLocations flag on @ContextConfiguration .
13 years ago
Sam Brannen
102674be20
[SPR-8386] Completed JavaDoc for ContextLoaderUtils regarding the SmartContextLoader SPI.
13 years ago
Sam Brannen
82d09d432e
[SPR-8386] Completed JavaDoc for AnnotationConfigContextLoader regarding the SmartContextLoader SPI.
13 years ago
Sam Brannen
f7a849f9f4
[SPR-8386] AbstractContextLoader now adheres to the SmartContextLoader contract by verifying the existence of generated default resource locations.
13 years ago