Use long for expires and lastModified in HeaderAssertions

This commit changes the type of parameters so that HeaderAssertions
can assert expires and lastModified properly.

Issue: SPR-17194
This commit is contained in:
Toshiaki Maki
2018-08-18 01:20:59 +09:00
committed by Rossen Stoyanchev
parent f87a37fd0d
commit d570f82456
2 changed files with 35 additions and 2 deletions

View File

@@ -181,14 +181,14 @@ public class HeaderAssertions {
/**
* Expect an "Expires" header with the given value.
*/
public WebTestClient.ResponseSpec expires(int expires) {
public WebTestClient.ResponseSpec expires(long expires) {
return assertHeader("Expires", expires, getHeaders().getExpires());
}
/**
* Expect a "Last-Modified" header with the given value.
*/
public WebTestClient.ResponseSpec lastModified(int lastModified) {
public WebTestClient.ResponseSpec lastModified(long lastModified) {
return assertHeader("Last-Modified", lastModified, getHeaders().getLastModified());
}