mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-17 07:26:47 +00:00
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@1571382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9b5b7e9eb9
commit
7e162182b3
@ -47,6 +47,7 @@
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestAsynchronousValidator {
|
||||
|
||||
private AsynchronousValidator impl;
|
||||
|
@ -69,6 +69,7 @@
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestCachingExec extends TestCachingExecChain {
|
||||
|
||||
private static final String GET_CURRENT_DATE = "getCurrentDate";
|
||||
|
@ -85,6 +85,7 @@
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public abstract class TestCachingExecChain {
|
||||
|
||||
private ClientExecChain impl;
|
||||
|
@ -43,6 +43,7 @@
|
||||
import org.easymock.EasyMock;
|
||||
import org.junit.Test;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestEhcacheHttpCacheStorage extends TestCase {
|
||||
|
||||
private Ehcache mockCache;
|
||||
|
@ -35,6 +35,7 @@
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public final class TestPropertiesUtils {
|
||||
|
||||
@Test
|
||||
|
@ -36,6 +36,7 @@
|
||||
import org.junit.Test;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestHttpClientUtils {
|
||||
|
||||
@Test
|
||||
|
@ -34,6 +34,7 @@
|
||||
import org.junit.Test;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestEofSensorInputStream {
|
||||
|
||||
private InputStream instream;
|
||||
|
@ -40,6 +40,7 @@
|
||||
/**
|
||||
* Tests for {@link RouteTracker}.
|
||||
*/
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestRouteTracker {
|
||||
|
||||
// a selection of constants for generating routes
|
||||
|
@ -62,6 +62,7 @@
|
||||
/**
|
||||
* Simple tests for {@link AuthenticationStrategyImpl}.
|
||||
*/
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestAuthenticationStrategy {
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
|
@ -43,6 +43,7 @@
|
||||
/**
|
||||
* Unit tests for {@link BasicResponseHandler}.
|
||||
*/
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestBasicResponseHandler {
|
||||
|
||||
@Test
|
||||
|
@ -46,6 +46,7 @@
|
||||
/**
|
||||
* Simple tests for {@link CloseableHttpClient}.
|
||||
*/
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestCloseableHttpClient {
|
||||
|
||||
static abstract class NoopCloseableHttpClient extends CloseableHttpClient {
|
||||
|
@ -54,6 +54,7 @@
|
||||
import org.mockito.Mockito;
|
||||
import org.mockito.MockitoAnnotations;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestBasicHttpClientConnectionManager {
|
||||
|
||||
@Mock
|
||||
|
@ -40,6 +40,7 @@
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import org.apache.http.ConnectionReuseStrategy;
|
||||
import org.apache.http.Header;
|
||||
import org.apache.http.HttpClientConnection;
|
||||
@ -90,6 +91,7 @@
|
||||
import org.mockito.invocation.InvocationOnMock;
|
||||
import org.mockito.stubbing.Answer;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestMainClientExec {
|
||||
|
||||
@Mock
|
||||
|
@ -66,6 +66,7 @@
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestMinimalClientExec {
|
||||
|
||||
@Mock
|
||||
|
@ -27,6 +27,7 @@
|
||||
package org.apache.http.impl.execchain;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import org.apache.http.Header;
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.HttpException;
|
||||
@ -64,6 +65,7 @@
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestRedirectExec {
|
||||
|
||||
@Mock
|
||||
|
@ -38,6 +38,7 @@
|
||||
import org.junit.Test;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestResponseEntityWrapper {
|
||||
|
||||
private InputStream instream;
|
||||
|
@ -42,6 +42,7 @@
|
||||
import org.mockito.Mockito;
|
||||
import org.mockito.MockitoAnnotations;
|
||||
|
||||
@SuppressWarnings("boxing") // test code
|
||||
public class TestServiceUnavailableRetryExec {
|
||||
|
||||
@Mock
|
||||
|
Loading…
x
Reference in New Issue
Block a user