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
This commit is contained in:
Sebastian Bazley 2014-02-24 18:28:17 +00:00
parent 7e162182b3
commit 0b7d6186db
9 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -37,6 +37,7 @@ import org.mockito.Mockito;
/**
* Unit tests for {@link BasicAuthCache}.
*/
@SuppressWarnings("boxing") // test code
public class TestBasicAuthCache {
@Test

View File

@ -42,6 +42,7 @@ import org.junit.Before;
import org.junit.Test;
@SuppressWarnings("boxing") // test code
public class TestDefaultBackoffStrategy {
private DefaultBackoffStrategy impl;

View File

@ -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;

View File

@ -45,6 +45,7 @@ import org.mockito.Mockito;
/**
* Tests for {@link DefaultRoutePlanner}.
*/
@SuppressWarnings("boxing") // test code
public class TestDefaultRoutePlanner {
private SchemePortResolver schemePortResolver;

View File

@ -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;

View File

@ -51,6 +51,7 @@ import org.mockito.Mockito;
/**
* Tests for {@link SystemDefaultRoutePlanner}.
*/
@SuppressWarnings("boxing") // test code
public class TestSystemDefaultRoutePlanner {
private SchemePortResolver schemePortResolver;