From e9ed1f5725d9869bd545b2e4bca70e3467264ee5 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 8 Nov 2012 01:34:17 +0000 Subject: [PATCH] Fix some obvious boxing in test classes git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406888 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/http/impl/client/cache/TestCachingHttpClient.java | 2 +- .../http/impl/client/cache/TestProtocolRequirements.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java index 510953f84..b7fc1c89f 100644 --- a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java +++ b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java @@ -1985,7 +1985,7 @@ public class TestCachingHttpClient { HttpContext ctx = new BasicHttpContext(); impl.execute(host, request); impl.execute(host, request, ctx); - assertTrue((Boolean)ctx.getAttribute(ExecutionContext.HTTP_REQ_SENT)); + assertEquals(Boolean.TRUE, ctx.getAttribute(ExecutionContext.HTTP_REQ_SENT)); } @Test diff --git a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolRequirements.java b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolRequirements.java index f6b2773d7..302ae0ded 100644 --- a/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolRequirements.java +++ b/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestProtocolRequirements.java @@ -556,7 +556,7 @@ public class TestProtocolRequirements extends AbstractProtocolTest { Capture reqCap = new Capture(); - EasyMock.expect(post.expectContinue()).andReturn(true).anyTimes(); + EasyMock.expect(post.expectContinue()).andReturn(Boolean.TRUE).anyTimes(); EasyMock.expect( mockBackend.execute(EasyMock.eq(host), EasyMock.capture(reqCap), (HttpContext) EasyMock.isNull())).andReturn(originResponse); @@ -601,7 +601,7 @@ public class TestProtocolRequirements extends AbstractProtocolTest { Capture reqCap = new Capture(); - EasyMock.expect(post.expectContinue()).andReturn(false).anyTimes(); + EasyMock.expect(post.expectContinue()).andReturn(Boolean.FALSE).anyTimes(); EasyMock.expect( mockBackend.execute(EasyMock.eq(host), EasyMock.capture(reqCap), (HttpContext) EasyMock.isNull())).andReturn(originResponse);