commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1438149 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/MatchRatingApproachEncoderTest.java
Date Thu, 24 Jan 2013 19:55:29 GMT
Author: sebb
Date: Thu Jan 24 19:55:29 2013
New Revision: 1438149

URL: http://svn.apache.org/viewvc?rev=1438149&view=rev
Log:
Simplify and avoid boxing

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

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/MatchRatingApproachEncoderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/MatchRatingApproachEncoderTest.java?rev=1438149&r1=1438148&r2=1438149&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/MatchRatingApproachEncoderTest.java
(original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/MatchRatingApproachEncoderTest.java
Thu Jan 24 19:55:29 2013
@@ -99,7 +99,7 @@ public class MatchRatingApproachEncoderT
 
     @Test
     public final void testIsVowel_CapitalA_ReturnsTrue() {
-        assertEquals(true, this.getStringEncoder().isVowel("A"));
+        assertTrue(this.getStringEncoder().isVowel("A"));
     }
 
     @Test
@@ -288,12 +288,12 @@ public class MatchRatingApproachEncoderT
 	
 	@Test
     public final void testCompareNameNullSpace_ReturnsFalseSuccessfully() {
-    	assertEquals(false, getStringEncoder().isEncodeEquals(null, " "));
+    	assertFalse(getStringEncoder().isEncodeEquals(null, " "));
     }
     
     @Test
     public final void testCompareNameSameNames_ReturnsFalseSuccessfully() {
-    	assertEquals(true, getStringEncoder().isEncodeEquals("John", "John"));
+    	assertTrue(getStringEncoder().isEncodeEquals("John", "John"));
     }
 
     // ***** END REGION - TEST GET MRA ENCODING



Mime
View raw message