commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r902960 - in /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent: CallableBackgroundInitializerTest.java TimedSemaphoreTest.java
Date Mon, 25 Jan 2010 19:47:41 GMT
Author: sebb
Date: Mon Jan 25 19:47:41 2010
New Revision: 902960

URL: http://svn.apache.org/viewvc?rev=902960&view=rev
Log:
Explicit boxing

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializerTest.java
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializerTest.java?rev=902960&r1=902959&r2=902960&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializerTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializerTest.java
Mon Jan 25 19:47:41 2010
@@ -29,7 +29,7 @@
  */
 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

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java?rev=902960&r1=902959&r2=902960&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java
Mon Jan 25 19:47:41 2010
@@ -187,7 +187,7 @@
                 .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);



Mime
View raw message