hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1512719 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/execchain/TestRetryExec.java
Date Sat, 10 Aug 2013 14:20:10 GMT
Author: olegk
Date: Sat Aug 10 14:20:10 2013
New Revision: 1512719

URL: http://svn.apache.org/r1512719
Log:
Fixed Java 5 incompatibility causing a compile error with JDK 1.5

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/execchain/TestRetryExec.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/execchain/TestRetryExec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/execchain/TestRetryExec.java?rev=1512719&r1=1512718&r2=1512719&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/execchain/TestRetryExec.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/execchain/TestRetryExec.java
Sat Aug 10 14:20:10 2013
@@ -85,7 +85,7 @@ public class TestRetryExec {
                 Mockito.same(request),
                 Mockito.<HttpClientContext>any(),
                 Mockito.<HttpExecutionAware>any())).thenAnswer(new Answer<Object>()
{
-            @Override
+
             public Object answer(final InvocationOnMock invocationOnMock) throws Throwable
{
                 final Object[] args = invocationOnMock.getArguments();
                 final HttpRequestWrapper wrapper = (HttpRequestWrapper) args[1];
@@ -96,6 +96,7 @@ public class TestRetryExec {
                 wrapper.addHeader("Cookie", "monster");
                 throw new IOException("Ka-boom");
             }
+
         });
         Mockito.when(retryHandler.retryRequest(
                 Mockito.<IOException>any(),
@@ -159,13 +160,14 @@ public class TestRetryExec {
                 Mockito.same(request),
                 Mockito.<HttpClientContext>any(),
                 Mockito.<HttpExecutionAware>any())).thenAnswer(new Answer<Object>()
{
-            @Override
+
             public Object answer(final InvocationOnMock invocationOnMock) throws Throwable
{
                 final Object[] args = invocationOnMock.getArguments();
                 final HttpEntityEnclosingRequest request = (HttpEntityEnclosingRequest) args[1];
                 request.getEntity().writeTo(new ByteArrayOutputStream());
                 throw new IOException("Ka-boom");
             }
+
         });
         Mockito.when(retryHandler.retryRequest(
                 Mockito.<IOException>any(),



Mime
View raw message