commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1188385 - /commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestBinaryFunctionUnaryFunction.java
Date Mon, 24 Oct 2011 21:10:17 GMT
Author: sebb
Date: Mon Oct 24 21:10:16 2011
New Revision: 1188385

URL: http://svn.apache.org/viewvc?rev=1188385&view=rev
Log:
Tidy tests - unnecessary Boolean boxing

Modified:
    commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestBinaryFunctionUnaryFunction.java

Modified: commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestBinaryFunctionUnaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestBinaryFunctionUnaryFunction.java?rev=1188385&r1=1188384&r2=1188385&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestBinaryFunctionUnaryFunction.java
(original)
+++ commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestBinaryFunctionUnaryFunction.java
Mon Oct 24 21:10:16 2011
@@ -45,13 +45,13 @@ public class TestBinaryFunctionUnaryFunc
     @Test
     public void testTestWhenTrue() throws Exception {
         UnaryFunction<Object, Boolean> f = new BinaryFunctionUnaryFunction<Object,
Boolean>(BinaryPredicateBinaryFunction.adapt(IsSame.INSTANCE));
-        assertTrue(f.evaluate(null));
+        assertEquals(Boolean.TRUE, f.evaluate(null));
     }
 
     @Test
     public void testTestWhenFalse() throws Exception {
         UnaryFunction<Object, Boolean> f = new BinaryFunctionUnaryFunction<Object,
Boolean>(BinaryPredicateBinaryFunction.adapt(IsNotSame.INSTANCE));
-        assertFalse(f.evaluate(null));
+        assertEquals(Boolean.FALSE, f.evaluate(null));
     }
 
     @Test



Mime
View raw message