Add MockHttpServletResponse.getDateHeader

This change adds a new `getDateHeader` method that converts date header
Strings to long values - making tests more readable.

This feature is also documented in the "what's new section" for 4.2.
This commit is contained in:
Brian Clozel
2015-09-03 16:03:46 +02:00
parent e81a430e61
commit d3d81c2864
3 changed files with 30 additions and 0 deletions

View File

@@ -618,4 +618,6 @@ public @interface MyTestConfig {
allowing common test database configuration to be reused in different
++ApplicationContext++s within a test suite.
** See <<jdbc-embedded-database-unique-names>> for details.
* `MockHttpServletRequest` and `MockHttpServletResponse` now better supports
date header formatting `getDateHeader` and `setDateHeader` methods.