Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a28d94ea5d
commit
f624a86dd1
|
@ -29,7 +29,7 @@ import junit.framework.TestCase;
|
|||
*/
|
||||
public class CallableBackgroundInitializerTest extends TestCase {
|
||||
/** Constant for the result of the call() invocation. */
|
||||
private static final Integer RESULT = 42;
|
||||
private static final Integer RESULT = Integer.valueOf(42);
|
||||
|
||||
/**
|
||||
* Tries to create an instance without a Callable. This should cause an
|
||||
|
|
|
@ -187,7 +187,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);
|
||||
|
|
Loading…
Reference in New Issue