Author: sebb
Date: Mon Oct 24 21:02:13 2011
New Revision: 1188376
URL: http://svn.apache.org/viewvc?rev=1188376&view=rev
Log:
Avoid boxing
Modified:
commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestLeftBoundPredicate.java
Modified:
commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestLeftBoundPredicate.java
URL:
http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestLeftBoundPredicate.java?rev=1188376&r1=1188375&r2=1188376&view=diff
==============================================================================
---
commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestLeftBoundPredicate.java
(original)
+++
commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestLeftBoundPredicate.java
Mon Oct 24 21:02:13 2011
@@ -17,8 +17,10 @@
package org.apache.commons.functor.adapter;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
import org.apache.commons.functor.BaseFunctorTest;
import org.apache.commons.functor.UnaryPredicate;
@@ -47,8 +49,8 @@ public class TestLeftBoundPredicate exte
public void testTest() throws Exception {
UnaryPredicate<Boolean> p = new LeftBoundPredicate<Boolean>(
new BinaryFunctionBinaryPredicate<Object,
Boolean>(RightIdentity.<Object, Boolean> function()), "foo");
- assertEquals(true,p.test(Boolean.TRUE));
- assertEquals(false,p.test(Boolean.FALSE));
+ assertTrue(p.test(Boolean.TRUE));
+ assertFalse(p.test(Boolean.FALSE));
}
@Test