-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement
Milestone
Description
Brian Clozel opened SPR-13263 and commented
HTTP headers such as "Expires"
, "Last-Modified"
all use date strings like "Tue, 21 Jul 2015 10:00:00 GMT"
.
A new ResultMatcher
should be useful to test those date headers using a long timestamp:
this.mockMvc.perform(get("/persons/1").header("If-Modified-Since", now))
.andExpect(status().isNotModified())
.andExpect(header().dateValue("Last-Modified", timestamp));
Affects: 4.2 RC3
Issue Links:
- MockHttpServletResponse.setDateHeader does not perform date formatting [SPR-11912] #16531 MockHttpServletResponse.setDateHeader does not perform date formatting
Referenced from: commits cf2aed9
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement