From 0b7d6186dbee616798c76514d75d028971b4d368 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 24 Feb 2014 18:28:17 +0000 Subject: [PATCH] Boxing not usually important in test code; the EasyMock classes generate a lot of warnings git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1571383 13f79535-47bb-0310-9956-ffa450edef68 --- .../impl/client/cache/TestAsynchronousValidationRequest.java | 1 + .../http/impl/client/cache/TestCachedHttpResponseGenerator.java | 1 + .../apache/http/impl/client/cache/TestProtocolDeviations.java | 1 + .../java/org/apache/http/impl/client/TestBasicAuthCache.java | 1 + .../org/apache/http/impl/client/TestDefaultBackoffStrategy.java | 1 + .../http/impl/client/TestFutureRequestExecutionService.java | 1 + .../java/org/apache/http/impl/conn/TestDefaultRoutePlanner.java | 1 + .../apache/http/impl/conn/TestHttpClientConnectionOperator.java | 1 + .../org/apache/http/impl/conn/TestSystemDefaultRoutePlanner.java | 1 + 9 files changed, 9 insertions(+) diff --git a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestAsynchronousValidationRequest.java b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestAsynchronousValidationRequest.java index 1b2471ee0..fd361f76e 100644 --- a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestAsynchronousValidationRequest.java +++ b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestAsynchronousValidationRequest.java @@ -45,6 +45,7 @@ import org.easymock.EasyMock; import org.junit.Before; import org.junit.Test; +@SuppressWarnings("boxing") // test code public class TestAsynchronousValidationRequest { private AsynchronousValidator mockParent; diff --git a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachedHttpResponseGenerator.java b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachedHttpResponseGenerator.java index 20c1cc4fc..6a95b527b 100644 --- a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachedHttpResponseGenerator.java +++ b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachedHttpResponseGenerator.java @@ -38,6 +38,7 @@ import org.junit.Assert; import org.junit.Before; import org.junit.Test; +@SuppressWarnings("boxing") // test code public class TestCachedHttpResponseGenerator { private HttpCacheEntry entry; diff --git a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolDeviations.java b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolDeviations.java index 0df43d305..e5e706380 100644 --- a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolDeviations.java +++ b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolDeviations.java @@ -70,6 +70,7 @@ import org.junit.Test; * and are expected to be a drop-in replacement. The test cases captured here * document the places where we differ from the HTTP RFC. */ +@SuppressWarnings("boxing") // test code public class TestProtocolDeviations { private static ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1); diff --git a/httpclient/src/test/java/org/apache/http/impl/client/TestBasicAuthCache.java b/httpclient/src/test/java/org/apache/http/impl/client/TestBasicAuthCache.java index b7561c7ee..b18262f05 100644 --- a/httpclient/src/test/java/org/apache/http/impl/client/TestBasicAuthCache.java +++ b/httpclient/src/test/java/org/apache/http/impl/client/TestBasicAuthCache.java @@ -37,6 +37,7 @@ import org.mockito.Mockito; /** * Unit tests for {@link BasicAuthCache}. */ +@SuppressWarnings("boxing") // test code public class TestBasicAuthCache { @Test diff --git a/httpclient/src/test/java/org/apache/http/impl/client/TestDefaultBackoffStrategy.java b/httpclient/src/test/java/org/apache/http/impl/client/TestDefaultBackoffStrategy.java index 36228ddf5..ca4d19185 100644 --- a/httpclient/src/test/java/org/apache/http/impl/client/TestDefaultBackoffStrategy.java +++ b/httpclient/src/test/java/org/apache/http/impl/client/TestDefaultBackoffStrategy.java @@ -42,6 +42,7 @@ import org.junit.Before; import org.junit.Test; +@SuppressWarnings("boxing") // test code public class TestDefaultBackoffStrategy { private DefaultBackoffStrategy impl; diff --git a/httpclient/src/test/java/org/apache/http/impl/client/TestFutureRequestExecutionService.java b/httpclient/src/test/java/org/apache/http/impl/client/TestFutureRequestExecutionService.java index 6a53a6ba4..da0587798 100644 --- a/httpclient/src/test/java/org/apache/http/impl/client/TestFutureRequestExecutionService.java +++ b/httpclient/src/test/java/org/apache/http/impl/client/TestFutureRequestExecutionService.java @@ -58,6 +58,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; +@SuppressWarnings("boxing") // test code public class TestFutureRequestExecutionService { private LocalTestServer localServer; diff --git a/httpclient/src/test/java/org/apache/http/impl/conn/TestDefaultRoutePlanner.java b/httpclient/src/test/java/org/apache/http/impl/conn/TestDefaultRoutePlanner.java index baab240ea..c11be83ab 100644 --- a/httpclient/src/test/java/org/apache/http/impl/conn/TestDefaultRoutePlanner.java +++ b/httpclient/src/test/java/org/apache/http/impl/conn/TestDefaultRoutePlanner.java @@ -45,6 +45,7 @@ import org.mockito.Mockito; /** * Tests for {@link DefaultRoutePlanner}. */ +@SuppressWarnings("boxing") // test code public class TestDefaultRoutePlanner { private SchemePortResolver schemePortResolver; diff --git a/httpclient/src/test/java/org/apache/http/impl/conn/TestHttpClientConnectionOperator.java b/httpclient/src/test/java/org/apache/http/impl/conn/TestHttpClientConnectionOperator.java index 4621c12f5..66f2e55c0 100644 --- a/httpclient/src/test/java/org/apache/http/impl/conn/TestHttpClientConnectionOperator.java +++ b/httpclient/src/test/java/org/apache/http/impl/conn/TestHttpClientConnectionOperator.java @@ -50,6 +50,7 @@ import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; +@SuppressWarnings("boxing") // test code public class TestHttpClientConnectionOperator { private ManagedHttpClientConnection conn; diff --git a/httpclient/src/test/java/org/apache/http/impl/conn/TestSystemDefaultRoutePlanner.java b/httpclient/src/test/java/org/apache/http/impl/conn/TestSystemDefaultRoutePlanner.java index 1e6fc4607..2ce57ab2f 100644 --- a/httpclient/src/test/java/org/apache/http/impl/conn/TestSystemDefaultRoutePlanner.java +++ b/httpclient/src/test/java/org/apache/http/impl/conn/TestSystemDefaultRoutePlanner.java @@ -51,6 +51,7 @@ import org.mockito.Mockito; /** * Tests for {@link SystemDefaultRoutePlanner}. */ +@SuppressWarnings("boxing") // test code public class TestSystemDefaultRoutePlanner { private SchemePortResolver schemePortResolver;