hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1406425 - /httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/memcached/TestMemcachedHttpCacheStorage.java
Date Wed, 07 Nov 2012 02:47:24 GMT
Author: sebb
Date: Wed Nov  7 02:47:24 2012
New Revision: 1406425

URL: http://svn.apache.org/viewvc?rev=1406425&view=rev
Log:
Unthrown exceptions

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/memcached/TestMemcachedHttpCacheStorage.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/memcached/TestMemcachedHttpCacheStorage.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/memcached/TestMemcachedHttpCacheStorage.java?rev=1406425&r1=1406424&r2=1406425&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/memcached/TestMemcachedHttpCacheStorage.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/memcached/TestMemcachedHttpCacheStorage.java
Wed Nov  7 02:47:24 2012
@@ -129,7 +129,7 @@ public class TestMemcachedHttpCacheStora
         verifyMocks();
     }
     
-    public void testThrowsIOExceptionWhenMemcachedPutTimesOut() throws IOException {
+    public void testThrowsIOExceptionWhenMemcachedPutTimesOut() {
         final String url = "foo";
         final String key = "key";
         final HttpCacheEntry value = HttpTestUtils.makeCacheEntry();
@@ -154,7 +154,7 @@ public class TestMemcachedHttpCacheStora
     }
 
     @Test
-    public void testCachePutThrowsIOExceptionIfCannotSerializeEntry() throws IOException
{
+    public void testCachePutThrowsIOExceptionIfCannotSerializeEntry() {
         final String url = "foo";
         final String key = "key";
         final HttpCacheEntry value = HttpTestUtils.makeCacheEntry();
@@ -260,8 +260,7 @@ public class TestMemcachedHttpCacheStora
     }
 
     @Test
-    public void testThrowsIOExceptionIfMemcachedTimesOutOnGet() throws UnsupportedEncodingException,
-            IOException {
+    public void testThrowsIOExceptionIfMemcachedTimesOutOnGet() {
         final String url = "foo";
         final String key = "key";
         EasyMock.expect(mockKeyHashingScheme.hash(url)).andReturn(key);
@@ -298,7 +297,7 @@ public class TestMemcachedHttpCacheStora
     }
 
     @Test
-    public void testCacheRemoveThrowsIOExceptionOnMemcachedTimeout() throws IOException {
+    public void testCacheRemoveThrowsIOExceptionOnMemcachedTimeout() {
         final String url = "foo";
         final String key = "key";
         EasyMock.expect(mockKeyHashingScheme.hash(url)).andReturn(key);
@@ -423,8 +422,7 @@ public class TestMemcachedHttpCacheStora
     }
     
     @Test
-    public void testCacheUpdateThrowsExceptionsIfCASFailsEnoughTimes() throws IOException,
-            HttpCacheUpdateException {
+    public void testCacheUpdateThrowsExceptionsIfCASFailsEnoughTimes() throws IOException
{
         final String url = "foo";
         final String key = "key";
         final HttpCacheEntry existingValue = HttpTestUtils.makeCacheEntry();
@@ -535,8 +533,7 @@ public class TestMemcachedHttpCacheStora
 
 
     @Test
-    public void testUpdateThrowsIOExceptionIfMemcachedTimesOut() throws IOException,
-            HttpCacheUpdateException {
+    public void testUpdateThrowsIOExceptionIfMemcachedTimesOut() throws HttpCacheUpdateException
{
         final String url = "foo";
         final String key = "key";
         final HttpCacheEntry updatedValue = HttpTestUtils.makeCacheEntry();



Mime
View raw message