Unthrown exceptions

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406425 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-11-07 02:47:24 +00:00
parent 73054957f8
commit e1395539de
1 changed files with 6 additions and 9 deletions

View File

@ -129,7 +129,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
verifyMocks(); verifyMocks();
} }
public void testThrowsIOExceptionWhenMemcachedPutTimesOut() throws IOException { public void testThrowsIOExceptionWhenMemcachedPutTimesOut() {
final String url = "foo"; final String url = "foo";
final String key = "key"; final String key = "key";
final HttpCacheEntry value = HttpTestUtils.makeCacheEntry(); final HttpCacheEntry value = HttpTestUtils.makeCacheEntry();
@ -154,7 +154,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
} }
@Test @Test
public void testCachePutThrowsIOExceptionIfCannotSerializeEntry() throws IOException { public void testCachePutThrowsIOExceptionIfCannotSerializeEntry() {
final String url = "foo"; final String url = "foo";
final String key = "key"; final String key = "key";
final HttpCacheEntry value = HttpTestUtils.makeCacheEntry(); final HttpCacheEntry value = HttpTestUtils.makeCacheEntry();
@ -260,8 +260,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
} }
@Test @Test
public void testThrowsIOExceptionIfMemcachedTimesOutOnGet() throws UnsupportedEncodingException, public void testThrowsIOExceptionIfMemcachedTimesOutOnGet() {
IOException {
final String url = "foo"; final String url = "foo";
final String key = "key"; final String key = "key";
EasyMock.expect(mockKeyHashingScheme.hash(url)).andReturn(key); EasyMock.expect(mockKeyHashingScheme.hash(url)).andReturn(key);
@ -298,7 +297,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
} }
@Test @Test
public void testCacheRemoveThrowsIOExceptionOnMemcachedTimeout() throws IOException { public void testCacheRemoveThrowsIOExceptionOnMemcachedTimeout() {
final String url = "foo"; final String url = "foo";
final String key = "key"; final String key = "key";
EasyMock.expect(mockKeyHashingScheme.hash(url)).andReturn(key); EasyMock.expect(mockKeyHashingScheme.hash(url)).andReturn(key);
@ -423,8 +422,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
} }
@Test @Test
public void testCacheUpdateThrowsExceptionsIfCASFailsEnoughTimes() throws IOException, public void testCacheUpdateThrowsExceptionsIfCASFailsEnoughTimes() throws IOException {
HttpCacheUpdateException {
final String url = "foo"; final String url = "foo";
final String key = "key"; final String key = "key";
final HttpCacheEntry existingValue = HttpTestUtils.makeCacheEntry(); final HttpCacheEntry existingValue = HttpTestUtils.makeCacheEntry();
@ -535,8 +533,7 @@ public class TestMemcachedHttpCacheStorage extends TestCase {
@Test @Test
public void testUpdateThrowsIOExceptionIfMemcachedTimesOut() throws IOException, public void testUpdateThrowsIOExceptionIfMemcachedTimesOut() throws HttpCacheUpdateException {
HttpCacheUpdateException {
final String url = "foo"; final String url = "foo";
final String key = "key"; final String key = "key";
final HttpCacheEntry updatedValue = HttpTestUtils.makeCacheEntry(); final HttpCacheEntry updatedValue = HttpTestUtils.makeCacheEntry();