hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1055731 - in /httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache: ehcache/TestEhcacheHttpCacheStorage.java memcached/TestMemcachedHttpCacheStorage.java
Date Thu, 06 Jan 2011 03:23:36 GMT
Author: sebb
Date: Thu Jan  6 03:23:34 2011
New Revision: 1055731

URL: http://svn.apache.org/viewvc?rev=1055731&view=rev
Log:
Unthrown Exceptions and @Overrides

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/ehcache/TestEhcacheHttpCacheStorage.java
    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/ehcache/TestEhcacheHttpCacheStorage.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/ehcache/TestEhcacheHttpCacheStorage.java?rev=1055731&r1=1055730&r2=1055731&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/ehcache/TestEhcacheHttpCacheStorage.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/ehcache/TestEhcacheHttpCacheStorage.java
Thu Jan  6 03:23:34 2011
@@ -49,6 +49,7 @@ public class TestEhcacheHttpCacheStorage
     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
     }
 
     @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();

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=1055731&r1=1055730&r2=1055731&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
Thu Jan  6 03:23:34 2011
@@ -51,6 +51,7 @@ public class TestMemcachedHttpCacheStora
     private MemcachedClientIF mockMemcachedClient;
     private HttpCacheEntrySerializer mockSerializer;
 
+    @Override
     @Before
     public void setUp() throws Exception {
         mockMemcachedClient = EasyMock.createMock(MemcachedClientIF.class);
@@ -72,7 +73,7 @@ public class TestMemcachedHttpCacheStora
     }
 
     @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 TestMemcachedHttpCacheStora
 
     @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 TestMemcachedHttpCacheStora
     }
 
     @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 TestMemcachedHttpCacheStora
     }
 
     @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();



Mime
View raw message