Avoid name hiding
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1571364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f18074b586
commit
c06d7ae10c
|
@ -324,9 +324,9 @@ public class TestHttpCacheEntry {
|
|||
|
||||
@Test
|
||||
public void testValidDateHeaderIsParsed() {
|
||||
final long now = System.currentTimeMillis();
|
||||
final long nowMs = System.currentTimeMillis();
|
||||
// round down to nearest second to make comparison easier
|
||||
final Date date = new Date(now - (now % 1000L));
|
||||
final Date date = new Date(nowMs - (nowMs % 1000L));
|
||||
final Header[] headers = new Header[] { new BasicHeader("Date", DateUtils.formatDate(date)) };
|
||||
entry = new HttpCacheEntry(new Date(), new Date(), statusLine,
|
||||
headers, mockResource);
|
||||
|
|
Loading…
Reference in New Issue