commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1151550 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
Date Wed, 27 Jul 2011 17:34:41 GMT
Author: ggregory
Date: Wed Jul 27 17:34:40 2011
New Revision: 1151550

URL: http://svn.apache.org/viewvc?rev=1151550&view=rev
Log:
Format.

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

Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java?rev=1151550&r1=1151549&r2=1151550&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
(original)
+++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
Wed Jul 27 17:34:40 2011
@@ -46,7 +46,7 @@ public class BeiderMorseEncoderTest exte
      * 
      * @throws EncoderException
      */
-    @Ignore
+    // @Ignore
     @Test
     public void testEncodeGna() throws EncoderException {
         BeiderMorseEncoder bmpm = new BeiderMorseEncoder();
@@ -102,11 +102,11 @@ public class BeiderMorseEncoderTest exte
         BeiderMorseEncoder bmpm = new BeiderMorseEncoder();
         bmpm.setRuleType(RuleType.RULES);
     }
-    
+
     @Ignore
     @Test
     public void testSpeedCheck() throws EncoderException {
-        char[] chars = new char[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'o','u' };
+        char[] chars = new char[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'o', 'u' };
         BeiderMorseEncoder bmpm = new BeiderMorseEncoder();
         bmpm.setNameType(NameType.GENERIC);
         bmpm.setRuleType(RuleType.APPROX);
@@ -119,8 +119,7 @@ public class BeiderMorseEncoderTest exte
             System.out.println("String to encode:" + stringBuffer.toString());
             bmpm.encode(stringBuffer.toString());
             stringBuffer.append(chars[rand.nextInt(chars.length)]);
-            System.out.println("Elapsed time in ms:"
-                    + (System.currentTimeMillis() - start));
+            System.out.println("Elapsed time in ms:" + (System.currentTimeMillis() - start));
         }
     }
 }



Mime
View raw message