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