Unthrown Exceptions and @Overrides
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1055731 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b2dccf239
commit
868e46fd5b
|
@ -49,6 +49,7 @@ public class TestEhcacheHttpCacheStorage extends TestCase {
|
|||
private EhcacheHttpCacheStorage impl;
|
||||
private HttpCacheEntrySerializer mockSerializer;
|
||||
|
||||
@Override
|
||||
public void setUp() {
|
||||
mockCache = EasyMock.createMock(Ehcache.class);
|
||||
CacheConfig config = new CacheConfig();
|
||||
|
@ -212,7 +213,7 @@ public class TestEhcacheHttpCacheStorage extends TestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testCacheUpdateFail() throws IOException, HttpCacheUpdateException {
|
||||
public void testCacheUpdateFail() throws IOException {
|
||||
final String key = "foo";
|
||||
final HttpCacheEntry existingValue = HttpTestUtils.makeCacheEntry();
|
||||
final HttpCacheEntry updatedValue = HttpTestUtils.makeCacheEntry();
|
||||
|
|
|
@ -51,6 +51,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
|
|||
private MemcachedClientIF mockMemcachedClient;
|
||||
private HttpCacheEntrySerializer mockSerializer;
|
||||
|
||||
@Override
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
mockMemcachedClient = EasyMock.createMock(MemcachedClientIF.class);
|
||||
|
@ -72,7 +73,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testCachePut() throws IOException, HttpCacheUpdateException {
|
||||
public void testCachePut() throws IOException {
|
||||
final String url = "foo";
|
||||
final HttpCacheEntry value = HttpTestUtils.makeCacheEntry();
|
||||
mockSerializer.writeTo(EasyMock.isA(HttpCacheEntry.class), EasyMock
|
||||
|
@ -87,7 +88,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
|
|||
|
||||
@Test
|
||||
public void testCacheGet() throws UnsupportedEncodingException,
|
||||
IOException, HttpCacheUpdateException {
|
||||
IOException {
|
||||
final String url = "foo";
|
||||
final HttpCacheEntry cacheEntry = HttpTestUtils.makeCacheEntry();
|
||||
EasyMock.expect(mockMemcachedClient.get(url)).andReturn(new byte[] {});
|
||||
|
@ -114,7 +115,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testCacheRemove() throws IOException, HttpCacheUpdateException {
|
||||
public void testCacheRemove() throws IOException {
|
||||
final String url = "foo";
|
||||
EasyMock.expect(mockMemcachedClient.delete(url)).andReturn(null);
|
||||
replayMocks();
|
||||
|
@ -226,8 +227,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testCacheUpdateFail() throws IOException,
|
||||
HttpCacheUpdateException {
|
||||
public void testCacheUpdateFail() throws IOException {
|
||||
final String url = "foo";
|
||||
final HttpCacheEntry existingValue = HttpTestUtils.makeCacheEntry();
|
||||
final HttpCacheEntry updatedValue = HttpTestUtils.makeCacheEntry();
|
||||
|
|
Loading…
Reference in New Issue