diff --git a/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java b/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java index b8ba9579d..28ba2377a 100644 --- a/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java +++ b/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java @@ -168,7 +168,7 @@ public class TimedSemaphoreTest { .createMock(ScheduledExecutorService.class); ScheduledFuture future = EasyMock.createMock(ScheduledFuture.class); prepareStartTimer(service, future); - EasyMock.expect(future.cancel(false)).andReturn(true); + EasyMock.expect(Boolean.valueOf(future.cancel(false))).andReturn(Boolean.TRUE); EasyMock.replay(service, future); TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(service, PERIOD, UNIT, LIMIT);