https://bz.apache.org/bugzilla/show_bug.cgi?id=59962
--- Comment #3 from Kimono <[email protected]> --- I wrote a simple test method for TestCacheManagerBase. ---- @Test public void testExpiresBug59962() throws Exception { this.cacheManager.setUseExpires(true); this.cacheManager.testIterationStart(null); assertNull("Should not find entry", getThreadCacheEntry(LOCAL_HOST)); assertFalse("Should not find valid entry", this.cacheManager.inCache(url)); long start = System.currentTimeMillis(); setExpires(makeDate(new Date(start + 2000))); cacheResultWithGivenCode("304"); assertNotNull("Should find entry", getThreadCacheEntry(LOCAL_HOST)); assertTrue("Should find valid entry", this.cacheManager.inCache(url)); sleepTill(start + 2010); assertNotNull("Should find entry", getThreadCacheEntry(LOCAL_HOST)); assertFalse("Should not find valid entry", this.cacheManager.inCache(url)); } ---- -- You are receiving this mail because: You are the assignee for the bug.
