commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1382483 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/bm/RuleTest.java
Date Sun, 09 Sep 2012 12:34:04 GMT
Author: sebb
Date: Sun Sep  9 12:34:04 2012
New Revision: 1382483

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

Modified:
    commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/bm/RuleTest.java

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/bm/RuleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/bm/RuleTest.java?rev=1382483&r1=1382482&r2=1382483&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/bm/RuleTest.java
(original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/bm/RuleTest.java
Sun Sep  9 12:34:04 2012
@@ -38,7 +38,7 @@ public class RuleTest {
 
         @Override
         public boolean matches(Object item) {
-            return (Integer) item < 0;
+            return ((Integer) item).intValue() < 0;
         }
     }
 
@@ -66,7 +66,7 @@ public class RuleTest {
                 for (int j = i + 1; j < phs.length; j++) {
                     int c = Rule.Phoneme.COMPARATOR.compare(phs[i], phs[j]);
 
-                    assertThat("Comparing " + phs[i].getPhonemeText() + " to " + phs[j].getPhonemeText()
+ " should be negative", c,
+                    assertThat("Comparing " + phs[i].getPhonemeText() + " to " + phs[j].getPhonemeText()
+ " should be negative", Integer.valueOf(c),
                             new NegativeIntegerBaseMatcher());
                 }
             }



Mime
View raw message