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
This commit is contained in:
parent
b28ec1bf3d
commit
e9ed1f5725
|
@ -1985,7 +1985,7 @@ public class TestCachingHttpClient {
|
||||||
HttpContext ctx = new BasicHttpContext();
|
HttpContext ctx = new BasicHttpContext();
|
||||||
impl.execute(host, request);
|
impl.execute(host, request);
|
||||||
impl.execute(host, request, ctx);
|
impl.execute(host, request, ctx);
|
||||||
assertTrue((Boolean)ctx.getAttribute(ExecutionContext.HTTP_REQ_SENT));
|
assertEquals(Boolean.TRUE, ctx.getAttribute(ExecutionContext.HTTP_REQ_SENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -556,7 +556,7 @@ public class TestProtocolRequirements extends AbstractProtocolTest {
|
||||||
|
|
||||||
Capture<HttpEntityEnclosingRequest> reqCap = new Capture<HttpEntityEnclosingRequest>();
|
Capture<HttpEntityEnclosingRequest> reqCap = new Capture<HttpEntityEnclosingRequest>();
|
||||||
|
|
||||||
EasyMock.expect(post.expectContinue()).andReturn(true).anyTimes();
|
EasyMock.expect(post.expectContinue()).andReturn(Boolean.TRUE).anyTimes();
|
||||||
EasyMock.expect(
|
EasyMock.expect(
|
||||||
mockBackend.execute(EasyMock.eq(host), EasyMock.capture(reqCap),
|
mockBackend.execute(EasyMock.eq(host), EasyMock.capture(reqCap),
|
||||||
(HttpContext) EasyMock.isNull())).andReturn(originResponse);
|
(HttpContext) EasyMock.isNull())).andReturn(originResponse);
|
||||||
|
@ -601,7 +601,7 @@ public class TestProtocolRequirements extends AbstractProtocolTest {
|
||||||
|
|
||||||
Capture<HttpEntityEnclosingRequest> reqCap = new Capture<HttpEntityEnclosingRequest>();
|
Capture<HttpEntityEnclosingRequest> reqCap = new Capture<HttpEntityEnclosingRequest>();
|
||||||
|
|
||||||
EasyMock.expect(post.expectContinue()).andReturn(false).anyTimes();
|
EasyMock.expect(post.expectContinue()).andReturn(Boolean.FALSE).anyTimes();
|
||||||
EasyMock.expect(
|
EasyMock.expect(
|
||||||
mockBackend.execute(EasyMock.eq(host), EasyMock.capture(reqCap),
|
mockBackend.execute(EasyMock.eq(host), EasyMock.capture(reqCap),
|
||||||
(HttpContext) EasyMock.isNull())).andReturn(originResponse);
|
(HttpContext) EasyMock.isNull())).andReturn(originResponse);
|
||||||
|
|
Loading…
Reference in New Issue