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:
committed by
Rossen Stoyanchev
parent
f87a37fd0d
commit
d570f82456
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user