commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1452028 [6/7] - in /commons/proper/beanutils/trunk/src: changes/ main/java/org/apache/commons/beanutils/ main/java/org/apache/commons/beanutils/converters/ main/java/org/apache/commons/beanutils/locale/ main/java/org/apache/commons/beanuti...
Date Sun, 03 Mar 2013 11:19:54 GMT
Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/NumberConverterTestBase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/NumberConverterTestBase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/NumberConverterTestBase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/NumberConverterTestBase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.converters;
 
@@ -45,9 +45,9 @@ public abstract class NumberConverterTes
     public NumberConverterTestBase(String name) {
         super(name);
     }
-    
+
     // ------------------------------------------------------------------------
-    
+
     protected abstract NumberConverter makeConverter();
     protected abstract NumberConverter makeConverter(Object defaultValue);
     protected abstract Class getExpectedType();
@@ -71,7 +71,7 @@ public abstract class NumberConverterTes
      * instance of getExpectedType().
      */
     public void testConvertNumber() {
-        String[] message= { 
+        String[] message= {
             "from Byte",
             "from Short",
             "from Integer",
@@ -99,12 +99,12 @@ public abstract class NumberConverterTes
             Object val = makeConverter().convert(getExpectedType(),number[i]);
             assertNotNull("Convert " + message[i] + " should not be null",val);
             assertTrue(
-                "Convert " + message[i] + " should return a " + getExpectedType().getName(), 
+                "Convert " + message[i] + " should return a " + getExpectedType().getName(),
                 getExpectedType().isInstance(val));
         }
     }
     /**
-     * Convert Number --> String (using a Pattern, with default and specified Locales)  
+     * Convert Number --> String (using a Pattern, with default and specified Locales)
      */
     public void testNumberToStringPattern() {
 
@@ -129,7 +129,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Convert Number --> String (using default and specified Locales)  
+     * Convert Number --> String (using default and specified Locales)
      */
     public void testNumberToStringLocale() {
 
@@ -169,7 +169,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Convert Number --> String (default conversion)  
+     * Convert Number --> String (default conversion)
      */
     public void testNumberToStringDefault() {
 
@@ -178,11 +178,11 @@ public abstract class NumberConverterTes
         // Default Number --> String conversion
         assertEquals("Default Convert " + numbers[0], numbers[0].toString(), converter.convert(String.class, numbers[0]));
         assertEquals("Default Convert " + numbers[1], numbers[1].toString(), converter.convert(String.class, numbers[1]));
-    
+
     }
 
     /**
-     * Convert String --> Number (using a Pattern, with default and specified Locales)  
+     * Convert String --> Number (using a Pattern, with default and specified Locales)
      */
     public void testStringToNumberPattern() {
 
@@ -196,7 +196,7 @@ public abstract class NumberConverterTes
         // Default Locale
         assertEquals("Default Locale " + numbers[0], numbers[0], converter.convert(getExpectedType(), "(1,2)"));
         assertEquals("Default Locale " + numbers[1], numbers[1], converter.convert(getExpectedType(), "[1,3]"));
-        
+
         // Locale.GERMAN
         converter.setLocale(Locale.GERMAN);
         assertEquals("Locale.GERMAN " + numbers[2], numbers[2], converter.convert(getExpectedType(), "(2.2)"));
@@ -228,7 +228,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Convert String --> Number (using default and specified Locales)  
+     * Convert String --> Number (using default and specified Locales)
      */
     public void testStringToNumberLocale() {
 
@@ -269,7 +269,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Convert String --> Number (default conversion)  
+     * Convert String --> Number (default conversion)
      */
     public void testStringToNumberDefault() {
 
@@ -289,7 +289,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Convert Boolean --> Number (default conversion)  
+     * Convert Boolean --> Number (default conversion)
      */
     public void testBooleanToNumberDefault() {
 
@@ -298,7 +298,7 @@ public abstract class NumberConverterTes
         // Other type --> String conversion
         assertEquals("Boolean.FALSE to Number ", 0, ((Number)converter.convert(getExpectedType(), Boolean.FALSE)).intValue());
         assertEquals("Boolean.TRUE to Number ",  1, ((Number)converter.convert(getExpectedType(), Boolean.TRUE)).intValue());
-    
+
     }
 
     /**
@@ -348,7 +348,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Convert Other --> String (default conversion)  
+     * Convert Other --> String (default conversion)
      */
     public void testOtherToStringDefault() {
 
@@ -356,11 +356,11 @@ public abstract class NumberConverterTes
 
         // Other type --> String conversion
         assertEquals("Default Convert ", "ABC", converter.convert(String.class, new StringBuffer("ABC")));
-    
+
     }
 
     /**
-     * Convert Number --> String (using default and specified Locales)  
+     * Convert Number --> String (using default and specified Locales)
      */
     public void testInvalidDefault() {
 
@@ -373,7 +373,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Convert Number --> String (using default and specified Locales)  
+     * Convert Number --> String (using default and specified Locales)
      */
     public void testInvalidException() {
 
@@ -394,7 +394,7 @@ public abstract class NumberConverterTes
     }
 
     /**
-     * Test specifying an invalid type.  
+     * Test specifying an invalid type.
      */
     public void testInvalidType() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/ShortConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/ShortConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/ShortConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/ShortConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.converters;
 
@@ -38,7 +38,7 @@ public class ShortConverterTestCase exte
     public ShortConverterTestCase(String name) {
         super(name);
     }
-    
+
     // ------------------------------------------------------------------------
 
     public void setUp() throws Exception {
@@ -50,7 +50,7 @@ public class ShortConverterTestCase exte
     }
 
     public static TestSuite suite() {
-        return new TestSuite(ShortConverterTestCase.class);        
+        return new TestSuite(ShortConverterTestCase.class);
     }
 
     public void tearDown() throws Exception {
@@ -58,15 +58,15 @@ public class ShortConverterTestCase exte
     }
 
     // ------------------------------------------------------------------------
-    
+
     protected NumberConverter makeConverter() {
         return new ShortConverter();
     }
-    
+
     protected NumberConverter makeConverter(Object defaultValue) {
         return new ShortConverter(defaultValue);
     }
-    
+
     protected Class getExpectedType() {
         return Short.class;
     }
@@ -74,7 +74,7 @@ public class ShortConverterTestCase exte
     // ------------------------------------------------------------------------
 
     public void testSimpleConversion() throws Exception {
-        String[] message= { 
+        String[] message= {
             "from String",
             "from String",
             "from String",
@@ -89,8 +89,8 @@ public class ShortConverterTestCase exte
             "from Float",
             "from Double"
         };
-        
-        Object[] input = { 
+
+        Object[] input = {
             String.valueOf(Short.MIN_VALUE),
             "-17",
             "-1",
@@ -105,8 +105,8 @@ public class ShortConverterTestCase exte
             new Float(11.1),
             new Double(12.2)
         };
-        
-        Short[] expected = { 
+
+        Short[] expected = {
             new Short(Short.MIN_VALUE),
             new Short((short)-17),
             new Short((short)-1),
@@ -121,7 +121,7 @@ public class ShortConverterTestCase exte
             new Short((short)11),
             new Short((short)12)
         };
-        
+
         for(int i=0;i<expected.length;i++) {
             assertEquals(message[i] + " to Short",expected[i],converter.convert(Short.class,input[i]));
             assertEquals(message[i] + " to short",expected[i],converter.convert(Short.TYPE,input[i]));

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlDateConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlDateConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlDateConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlDateConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -93,7 +93,7 @@ public class SqlDateConverterTestCase ex
     protected DateTimeConverter makeConverter() {
         return new SqlDateConverter();
     }
-    
+
     /**
      * Create the Converter with a default value.
      * @param defaultValue The default value
@@ -113,7 +113,7 @@ public class SqlDateConverterTestCase ex
 
     /**
      * Convert from a Calendar to the appropriate Date type
-     * 
+     *
      * @param value The Calendar value to convert
      * @return The converted value
      */

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimeConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimeConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimeConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimeConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -115,7 +115,7 @@ public class SqlTimeConverterTestCase ex
     protected DateTimeConverter makeConverter() {
         return new SqlTimeConverter();
     }
-    
+
     /**
      * Create the Converter with a default value.
      * @param defaultValue The default value
@@ -135,7 +135,7 @@ public class SqlTimeConverterTestCase ex
 
     /**
      * Convert from a Calendar to the appropriate Date type
-     * 
+     *
      * @param value The Calendar value to convert
      * @return The converted value
      */

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimestampConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimestampConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimestampConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/SqlTimestampConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -112,7 +112,7 @@ public class SqlTimestampConverterTestCa
     protected DateTimeConverter makeConverter() {
         return new SqlTimestampConverter();
     }
-    
+
     /**
      * Create the Converter with a default value.
      * @param defaultValue The default value
@@ -132,7 +132,7 @@ public class SqlTimestampConverterTestCa
 
     /**
      * Convert from a Calendar to the appropriate Date type
-     * 
+     *
      * @param value The Calendar value to convert
      * @return The converted value
      */

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/StringArrayConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/StringArrayConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/StringArrayConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/StringArrayConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.converters;
 
@@ -27,22 +27,22 @@ import junit.framework.TestCase;
  */
 
 public class StringArrayConverterTestCase extends TestCase {
-    
+
     public StringArrayConverterTestCase(String name) {
         super(name);
     }
-    
+
     public void testIntToString() {
-        
+
         int[] testArray = {1, 2, 3, 4, 5};
         String[] results = (String []) new StringArrayConverter().convert(String.class, testArray);
-        
+
         assertEquals("Incorrect results size", 5, results.length);
-        assertEquals("Entry one is wrong", "1", results[0]); 
-        assertEquals("Entry two is wrong", "2", results[1]); 
-        assertEquals("Entry three is wrong", "3", results[2]); 
-        assertEquals("Entry four is wrong", "4", results[3]); 
-        assertEquals("Entry five is wrong", "5", results[4]); 
+        assertEquals("Entry one is wrong", "1", results[0]);
+        assertEquals("Entry two is wrong", "2", results[1]);
+        assertEquals("Entry three is wrong", "3", results[2]);
+        assertEquals("Entry four is wrong", "4", results[3]);
+        assertEquals("Entry five is wrong", "5", results[4]);
     }
 }
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/URLConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/URLConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/URLConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/converters/URLConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.converters;
 
@@ -40,7 +40,7 @@ public class URLConverterTestCase extend
     public URLConverterTestCase(String name) {
         super(name);
     }
-    
+
     // ------------------------------------------------------------------------
 
     public void setUp() throws Exception {
@@ -48,7 +48,7 @@ public class URLConverterTestCase extend
     }
 
     public static TestSuite suite() {
-        return new TestSuite(URLConverterTestCase.class);        
+        return new TestSuite(URLConverterTestCase.class);
     }
 
     public void tearDown() throws Exception {
@@ -56,11 +56,11 @@ public class URLConverterTestCase extend
     }
 
     // ------------------------------------------------------------------------
-    
+
     protected Converter makeConverter() {
         return new URLConverter();
     }
-    
+
     protected Class getExpectedType() {
         return URL.class;
     }
@@ -68,7 +68,7 @@ public class URLConverterTestCase extend
     // ------------------------------------------------------------------------
 
     public void testSimpleConversion() throws Exception {
-        String[] message= { 
+        String[] message= {
             "from String",
             "from String",
             "from String",
@@ -78,8 +78,8 @@ public class URLConverterTestCase extend
             "from String",
             "from String",
         };
-        
-        Object[] input = { 
+
+        Object[] input = {
             "http://www.apache.org",
             "http://www.apache.org/",
             "ftp://cvs.apache.org",
@@ -89,8 +89,8 @@ public class URLConverterTestCase extend
             "http://user:admin@www.apache.org:50/one/two.three",
             "http://notreal.apache.org",
         };
-        
-        URL[] expected = { 
+
+        URL[] expected = {
             new URL("http://www.apache.org"),
             new URL("http://www.apache.org/"),
             new URL("ftp://cvs.apache.org"),
@@ -100,16 +100,16 @@ public class URLConverterTestCase extend
             new URL("http://user:admin@www.apache.org:50/one/two.three"),
             new URL("http://notreal.apache.org")
         };
-        
+
         for(int i=0;i<expected.length;i++) {
             assertEquals(message[i] + " to URL",expected[i],converter.convert(URL.class,input[i]));
             assertEquals(message[i] + " to null type",expected[i],converter.convert(null,input[i]));
         }
-        
+
         for(int i=0;i<expected.length;i++) {
             assertEquals(input[i] + " to String", input[i], converter.convert(String.class, expected[i]));
         }
     }
-    
+
 }
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/expression/DefaultResolverTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/expression/DefaultResolverTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/expression/DefaultResolverTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/expression/DefaultResolverTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.apache.commons.beanutils.expression;
 
 import junit.framework.TestCase;
@@ -34,7 +34,7 @@ public class DefaultResolverTestCase ext
     private final String[] validIndexProperties = new String[] {"a[1]", "b[12]", "cd[3]", "ef[45]", "ghi[6]", "jkl[789]", };
     private final String[] validIndexNames      = new String[] {"a",    "b",     "cd",    "ef",     "ghi",    "jkl"};
     private final int[]    validIndexValues     = new int[]    {1,      12,      3,       45,       6,        789};
-    
+
     // Mapped Properties Test Data
     private final String[] validMapProperties = new String[] {"a(b)", "c(de)", "fg(h)", "ij(kl)", "mno(pqr.s)", "tuv(wx).yz[1]"};
     private final String[] validMapNames      = new String[] {"a",    "c",     "fg",    "ij",     "mno",        "tuv"};
@@ -59,7 +59,7 @@ public class DefaultResolverTestCase ext
      * @return test suite
      */
     public static TestSuite suite() {
-        return new TestSuite(DefaultResolverTestCase.class);        
+        return new TestSuite(DefaultResolverTestCase.class);
     }
 
     /**

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanUtilsTestCase.java Sun Mar  3 11:19:49 2013
@@ -30,9 +30,9 @@ import org.apache.commons.logging.LogFac
  * @version $Revision$ $Date$
  */
 public class LocaleBeanUtilsTestCase extends TestCase {
-    
+
     private static Log log = LogFactory.getLog(LocaleBeanUtilsTestCase.class);
-    
+
     /**
      * Construct a new instance of this test case.
      *

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleBeanificationTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale;
 
@@ -49,12 +49,12 @@ import java.util.Locale;
  */
 
 public class LocaleBeanificationTestCase extends TestCase {
-    
+
     // ---------------------------------------------------- Constants
-    
+
     /** Maximum number of iterations before our test fails */
     public static final int MAX_GC_ITERATIONS = 50;
-    
+
     // ---------------------------------------------------- Instance Variables
 
 
@@ -101,7 +101,7 @@ public class LocaleBeanificationTestCase
 
 
     // ------------------------------------------------ Individual Test Methods
-    
+
     /** Test of the methodology we'll use for some of the later tests */
     public void testMemoryTestMethodology() throws Exception {
         // test methodology
@@ -109,13 +109,13 @@ public class LocaleBeanificationTestCase
         ClassLoader loader = new ClassLoader(this.getClass().getClassLoader()) {};
         WeakReference reference = new  WeakReference(loader);
         Class myClass = loader.loadClass("org.apache.commons.beanutils.BetaBean");
-        
+
         assertNotNull("Weak reference released early", reference.get());
-        
+
         // dereference class loader and class:
         loader = null;
         myClass = null;
-        
+
         int iterations = 0;
         int bytz = 2;
         while(true) {
@@ -125,7 +125,7 @@ public class LocaleBeanificationTestCase
             }
             if( reference.get() == null ) {
                 break;
-                
+
             } else {
                 // create garbage:
                 byte[] b =  new byte[bytz];
@@ -133,35 +133,35 @@ public class LocaleBeanificationTestCase
             }
         }
     }
-    
+
     /** Tests whether classloaders and beans are released from memory by the map used by beanutils */
     public void testMemoryLeak2() throws Exception {
         // tests when the map used by beanutils has the right behaviour
-        
+
         if (BeanUtilsTestCase.isPre14JVM()) {
             System.out.println("WARNING: CANNOT TEST MEMORY LEAK ON PRE1.4 JVM");
             return;
         }
-        
+
         // many thanks to Juozas Baliuka for suggesting this methodology
         TestClassLoader loader = new TestClassLoader();
         ReferenceQueue queue = new ReferenceQueue();
         WeakReference loaderReference = new WeakReference(loader, queue);
         Integer test = new Integer(1);
-        
+
         WeakReference testReference = new WeakReference(test, queue);
         //Map map = new ReferenceMap(ReferenceMap.WEAK, ReferenceMap.HARD, true);
         Map map = new WeakHashMap();
         map.put(loader, test);
-        
+
         assertEquals("In map", test, map.get(loader));
         assertNotNull("Weak reference released early (1)", loaderReference.get());
         assertNotNull("Weak reference released early (2)", testReference.get());
-        
+
         // dereference strong references
         loader = null;
         test = null;
-        
+
         int iterations = 0;
         int bytz = 2;
         while(true) {
@@ -170,12 +170,12 @@ public class LocaleBeanificationTestCase
                 fail("Max iterations reached before resource released.");
             }
             map.isEmpty();
-            
-            if( 
+
+            if(
                 loaderReference.get() == null &&
                 testReference.get() == null) {
                 break;
-                
+
             } else {
                 // create garbage:
                 byte[] b =  new byte[bytz];
@@ -190,51 +190,51 @@ public class LocaleBeanificationTestCase
             System.out.println("WARNING: CANNOT TEST MEMORY LEAK ON PRE1.4 JVM");
             return;
         }
-        
+
         // many thanks to Juozas Baliuka for suggesting this methodology
         TestClassLoader loader = new TestClassLoader();
         WeakReference loaderReference = new  WeakReference(loader);
         LocaleBeanUtilsBean.getLocaleBeanUtilsInstance();
 
         class GetBeanUtilsBeanThread extends Thread {
-            
+
             LocaleBeanUtilsBean beanUtils;
             LocaleConvertUtilsBean convertUtils;
-        
+
             GetBeanUtilsBeanThread() {}
-            
+
             public void run() {
                 beanUtils = LocaleBeanUtilsBean.getLocaleBeanUtilsInstance();
                 convertUtils = LocaleConvertUtilsBean.getInstance();
                 // XXX Log keeps a reference around!
                 LogFactory.releaseAll();
             }
-            
+
             public String toString() {
                 return "GetBeanUtilsBeanThread";
             }
         }
-        
-    
+
+
         GetBeanUtilsBeanThread thread = new GetBeanUtilsBeanThread();
         WeakReference threadWeakReference = new WeakReference(thread);
         thread.setContextClassLoader(loader);
 
         thread.start();
         thread.join();
-        
+
         WeakReference beanUtilsReference = new WeakReference(thread.beanUtils);
         WeakReference convertUtilsReference = new WeakReference(thread.convertUtils);
-        
+
         assertNotNull("Weak reference released early (1)", loaderReference.get());
         assertNotNull("Weak reference released early (2)", beanUtilsReference.get());
         assertNotNull("Weak reference released early (4)", convertUtilsReference.get());
-        
+
         // dereference strong references
         loader = null;
         thread.setContextClassLoader(null);
         thread = null;
-        
+
         int iterations = 0;
         int bytz = 2;
         while(true) {
@@ -244,12 +244,12 @@ public class LocaleBeanificationTestCase
                 fail("Max iterations reached before resource released.");
             }
 
-            if( 
+            if(
                 loaderReference.get() == null &&
-                beanUtilsReference.get() == null && 
+                beanUtilsReference.get() == null &&
                 convertUtilsReference.get() == null) {
                 break;
-                
+
             } else {
                 // create garbage:
                 byte[] b =  new byte[bytz];
@@ -257,108 +257,108 @@ public class LocaleBeanificationTestCase
             }
         }
     }
-    
-    /** 
-     * Tests whether difference instances are loaded by different 
+
+    /**
+     * Tests whether difference instances are loaded by different
      * context classloaders.
      */
     public void testGetByContextClassLoader() throws Exception {
-            
+
         class GetBeanUtilsBeanThread extends Thread {
-            
+
             private final Signal signal;
-        
+
             GetBeanUtilsBeanThread(Signal signal) {
                 this.signal = signal;
             }
-            
+
             public void run() {
                 signal.setSignal(2);
                 signal.setBean(LocaleBeanUtilsBean.getLocaleBeanUtilsInstance());
                 signal.setConvertUtils(LocaleConvertUtilsBean.getInstance());
             }
-            
+
             public String toString() {
                 return "GetBeanUtilsBeanThread";
             }
         }
-            
+
         Signal signal = new Signal();
         signal.setSignal(1);
-        
+
         GetBeanUtilsBeanThread thread = new GetBeanUtilsBeanThread(signal);
         thread.setContextClassLoader(new TestClassLoader());
-        
+
         thread.start();
         thread.join();
-        
+
         assertEquals("Signal not set by test thread", 2, signal.getSignal());
         assertTrue(
-                    "Different LocaleBeanUtilsBean instances per context classloader", 
+                    "Different LocaleBeanUtilsBean instances per context classloader",
                     LocaleBeanUtilsBean.getInstance() != signal.getBean());
         assertTrue(
-                    "Different LocaleConvertUtilsBean instances per context classloader", 
+                    "Different LocaleConvertUtilsBean instances per context classloader",
                     LocaleConvertUtilsBean.getInstance() != signal.getConvertUtils());
     }
-    
-    
-    /** 
-     * Tests whether difference instances are loaded by different 
+
+
+    /**
+     * Tests whether difference instances are loaded by different
      * context classloaders.
      */
     public void testContextClassLoaderLocal() throws Exception {
-            
+
         class CCLLTesterThread extends Thread {
-            
+
             private final Signal signal;
             private final ContextClassLoaderLocal ccll;
-        
+
             CCLLTesterThread(Signal signal, ContextClassLoaderLocal ccll) {
                 this.signal = signal;
                 this.ccll = ccll;
             }
-            
+
             public void run() {
                 ccll.set(new Integer(1789));
                 signal.setSignal(2);
                 signal.setMarkerObject(ccll.get());
             }
-            
+
             public String toString() {
                 return "CCLLTesterThread";
             }
         }
-            
+
         ContextClassLoaderLocal ccll = new ContextClassLoaderLocal();
         ccll.set(new Integer(1776));
-        assertEquals("Start thread sets value", new Integer(1776), ccll.get());  
-        
+        assertEquals("Start thread sets value", new Integer(1776), ccll.get());
+
         Signal signal = new Signal();
         signal.setSignal(1);
-        
+
         CCLLTesterThread thread = new CCLLTesterThread(signal, ccll);
         thread.setContextClassLoader(new TestClassLoader());
-        
+
         thread.start();
         thread.join();
-        
-        assertEquals("Signal not set by test thread", 2, signal.getSignal());     
-        assertEquals("Second thread preserves value", new Integer(1776), ccll.get()); 
-        assertEquals("Second thread gets value it set", new Integer(1789), signal.getMarkerObject()); 
+
+        assertEquals("Signal not set by test thread", 2, signal.getSignal());
+        assertEquals("Second thread preserves value", new Integer(1776), ccll.get());
+        assertEquals("Second thread gets value it set", new Integer(1789), signal.getMarkerObject());
     }
-    
+
     /** Tests whether calls are independent for different classloaders */
     public void testContextClassloaderIndependence() throws Exception {
-    
+
         class TestIndependenceThread extends Thread {
             private final Signal signal;
             private final PrimitiveBean bean;
-        
+
             TestIndependenceThread(Signal signal, PrimitiveBean bean) {
                 this.signal = signal;
                 this.bean = bean;
             }
-            
+
             public void run() {
                 try {
                     signal.setSignal(3);
@@ -376,12 +376,12 @@ public class LocaleBeanificationTestCase
                     signal.setException(e);
                 }
             }
-            
+
             public String toString() {
                 return "TestIndependenceThread";
             }
         }
-        
+
         PrimitiveBean bean = new PrimitiveBean();
         LocaleBeanUtils.setProperty(bean, "int", new Integer(1));
         assertEquals("Wrong property value (1)", 1, bean.getInt());
@@ -396,76 +396,76 @@ public class LocaleBeanificationTestCase
                                     }, Integer.TYPE, Locale.getDefault());
         LocaleBeanUtils.setProperty(bean, "int", "1");
         assertEquals("Wrong property value(2)", 5, bean.getInt());
-    
+
         Signal signal = new Signal();
         signal.setSignal(1);
         TestIndependenceThread thread = new TestIndependenceThread(signal, bean);
         thread.setContextClassLoader(new TestClassLoader());
-        
+
         thread.start();
         thread.join();
-        
+
         assertNull("Exception thrown by test thread:" + signal.getException(), signal.getException());
         assertEquals("Signal not set by test thread", 3, signal.getSignal());
         assertEquals("Wrong property value(3)", 9, bean.getInt());
-        
+
     }
-    
+
     /** Tests whether different threads can set beanutils instances correctly */
     public void testBeanUtilsBeanSetInstance() throws Exception {
-            
+
         class SetInstanceTesterThread extends Thread {
-            
+
             private final Signal signal;
             private final LocaleBeanUtilsBean bean;
-        
+
             SetInstanceTesterThread(Signal signal, LocaleBeanUtilsBean bean) {
                 this.signal = signal;
                 this.bean = bean;
             }
-            
+
             public void run() {
                 LocaleBeanUtilsBean.setInstance(bean);
                 signal.setSignal(21);
                 signal.setBean(LocaleBeanUtilsBean.getLocaleBeanUtilsInstance());
             }
-            
+
             public String toString() {
                 return "SetInstanceTesterThread";
             }
         }
-        
+
         Signal signal = new Signal();
         signal.setSignal(1);
 
         LocaleBeanUtilsBean beanOne = new LocaleBeanUtilsBean();
         LocaleBeanUtilsBean beanTwo = new LocaleBeanUtilsBean();
-        
+
         SetInstanceTesterThread thread = new SetInstanceTesterThread(signal, beanTwo);
         thread.setContextClassLoader(new TestClassLoader());
-        
+
         LocaleBeanUtilsBean.setInstance(beanOne);
-        assertEquals("Start thread gets right instance", beanOne, LocaleBeanUtilsBean.getLocaleBeanUtilsInstance()); 
-        
+        assertEquals("Start thread gets right instance", beanOne, LocaleBeanUtilsBean.getLocaleBeanUtilsInstance());
+
         thread.start();
         thread.join();
-        
-        assertEquals("Signal not set by test thread", 21, signal.getSignal());     
-        assertEquals("Second thread preserves value", beanOne, LocaleBeanUtilsBean.getLocaleBeanUtilsInstance()); 
-        assertEquals("Second thread gets value it set", beanTwo, signal.getBean()); 
+
+        assertEquals("Signal not set by test thread", 21, signal.getSignal());
+        assertEquals("Second thread preserves value", beanOne, LocaleBeanUtilsBean.getLocaleBeanUtilsInstance());
+        assertEquals("Second thread gets value it set", beanTwo, signal.getBean());
     }
-    
+
     /** Tests whether the unset method works*/
     public void testContextClassLoaderUnset() throws Exception {
         LocaleBeanUtilsBean beanOne = new LocaleBeanUtilsBean();
         ContextClassLoaderLocal ccll = new ContextClassLoaderLocal();
         ccll.set(beanOne);
-        assertEquals("Start thread gets right instance", beanOne, ccll.get()); 
+        assertEquals("Start thread gets right instance", beanOne, ccll.get());
         ccll.unset();
-        assertTrue("Unset works", !beanOne.equals(ccll.get())); 
+        assertTrue("Unset works", !beanOne.equals(ccll.get()));
     }
-    
-    /** 
+
+    /**
      * Test registering a locale-aware converter with the standard ConvertUtils.
      */
     public void testLocaleAwareConverterInConvertUtils() throws Exception {
@@ -490,13 +490,13 @@ public class LocaleBeanificationTestCase
             catch(ConversionException ex) {
                 fail("Unexpected exception from standard Long converter.");
             }
-            
-            // Now try using a locale-aware converter together with 
-            // locale-specific input string. Note that in the german locale, 
-            // large numbers can be split up into groups of three digits 
+
+            // Now try using a locale-aware converter together with
+            // locale-specific input string. Note that in the german locale,
+            // large numbers can be split up into groups of three digits
             // using a dot character (and comma is the decimal-point indicator).
             try {
-                
+
                 Locale germanLocale = Locale.GERMAN;
                 LongLocaleConverter longLocaleConverter = new LongLocaleConverter(germanLocale);
                 ConvertUtils.register(longLocaleConverter, Long.class);
@@ -510,58 +510,58 @@ public class LocaleBeanificationTestCase
             ConvertUtils.deregister();
         }
     }
-    
+
     // ---- Auxillary classes
-    
+
     class TestClassLoader extends ClassLoader {
         public String toString() {
             return "TestClassLoader";
         }
     }
-    
+
     class Signal {
         private Exception e;
         private int signal = 0;
         private LocaleBeanUtilsBean bean;
         private LocaleConvertUtilsBean convertUtils;
         private Object marker;
-        
+
         public Exception getException() {
             return e;
         }
-        
+
         public void setException(Exception e) {
             this.e = e;
         }
-        
+
         public int getSignal() {
             return signal;
         }
-        
+
         public void setSignal(int signal) {
             this.signal = signal;
         }
-        
+
         public Object getMarkerObject() {
             return marker;
         }
-        
+
         public void setMarkerObject(Object marker) {
             this.marker = marker;
         }
-        
+
         public LocaleBeanUtilsBean getBean() {
             return bean;
         }
-        
+
         public void setBean(LocaleBeanUtilsBean bean) {
             this.bean = bean;
         }
-        
+
         public LocaleConvertUtilsBean getConvertUtils() {
             return convertUtils;
         }
-        
+
         public void setConvertUtils(LocaleConvertUtilsBean convertUtils) {
             this.convertUtils = convertUtils;
         }

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertTestSuite.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertTestSuite.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertTestSuite.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertTestSuite.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale;
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale;
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BaseLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BaseLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BaseLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BaseLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -44,15 +44,15 @@ public class BaseLocaleConverterTestCase
 
     // Localized values
     protected Locale localizedLocale;
-    protected String localizedDecimalPattern; 
-    protected String localizedIntegerPattern; 
+    protected String localizedDecimalPattern;
+    protected String localizedIntegerPattern;
     protected String localizedDecimalValue;
     protected String localizedIntegerValue;
 
     // Locale values
     protected Locale defaultLocale;
-    protected String defaultDecimalPattern; 
-    protected String defaultIntegerPattern; 
+    protected String defaultDecimalPattern;
+    protected String defaultIntegerPattern;
     protected String defaultDecimalValue;
     protected String defaultIntegerValue;
 
@@ -66,7 +66,7 @@ public class BaseLocaleConverterTestCase
     public BaseLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -121,7 +121,7 @@ public class BaseLocaleConverterTestCase
         defaultValue = null;
         expectedValue= null;
 
-        // Set the Default Locale back to the original value 
+        // Set the Default Locale back to the original value
         if (origLocale != null) {
             // System.out.println("Restoring default locale to " + origLocale);
             Locale.setDefault(origLocale);

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -34,7 +34,7 @@ public class BigDecimalLocaleConverterTe
     public BigDecimalLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -98,7 +98,7 @@ public class BigDecimalLocaleConverterTe
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a BigDecimal.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -122,9 +122,9 @@ public class BigDecimalLocaleConverterTe
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -141,9 +141,9 @@ public class BigDecimalLocaleConverterTe
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigIntegerLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigIntegerLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigIntegerLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/BigIntegerLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -34,7 +34,7 @@ public class BigIntegerLocaleConverterTe
     public BigIntegerLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -81,7 +81,7 @@ public class BigIntegerLocaleConverterTe
         // Convert value in the wrong format - maybe you would expect it to throw an
         // exception and return the default - it doesn't, DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // I guess this is one of the limitations of DecimalFormat 
+        // I guess this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueNoPattern(converter, "(B)", defaultIntegerValue, new BigInteger("1"));
 
@@ -90,14 +90,14 @@ public class BigIntegerLocaleConverterTe
         // Convert with non-localized pattern - unlike the equivalent BigDecimal Test Case
         // it doesn't causes an exception in parse() - DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // Again this is one of the limitations of DecimalFormat 
+        // Again this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueWithPattern(converter, "(B)", localizedIntegerValue, defaultIntegerPattern, new BigInteger("1"));
 
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a BigInteger.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -121,9 +121,9 @@ public class BigIntegerLocaleConverterTe
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -140,9 +140,9 @@ public class BigIntegerLocaleConverterTe
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ByteLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ByteLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ByteLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ByteLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -31,7 +31,7 @@ public class ByteLocaleConverterTestCase
     public ByteLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -40,7 +40,7 @@ public class ByteLocaleConverterTestCase
     public void setUp() throws Exception {
 
         super.setUp();
-        
+
         defaultIntegerPattern   = "#,###";
         defaultIntegerValue     = ",123";
 
@@ -89,7 +89,7 @@ public class ByteLocaleConverterTestCase
         // Convert value in the wrong format - maybe you would expect it to throw an
         // exception and return the default - it doesn't, DecimalFormat parses it
         // quite happily turning ",123" into "0"
-        // I guess this is one of the limitations of DecimalFormat 
+        // I guess this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueNoPattern(converter, "(B)", defaultIntegerValue, new Byte("0"));
 
@@ -103,7 +103,7 @@ public class ByteLocaleConverterTestCase
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a Byte.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -127,9 +127,9 @@ public class ByteLocaleConverterTestCase
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -146,9 +146,9 @@ public class ByteLocaleConverterTestCase
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DateLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -39,10 +39,10 @@ public class DateLocaleConverterTestCase
     /** All logging goes through this logger */
     private final Log log = LogFactory.getLog(DateLocaleConverterTestCase.class);
 
-    protected String localizedDatePattern; 
+    protected String localizedDatePattern;
     protected String localizedDateValue;
     protected String localizedShortDateValue;
-    protected String defaultDatePattern; 
+    protected String defaultDatePattern;
     protected String defaultDateValue;
     protected String defaultShortDateValue;
 
@@ -53,7 +53,7 @@ public class DateLocaleConverterTestCase
     public DateLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -97,7 +97,7 @@ public class DateLocaleConverterTestCase
         DateFormatSymbols localizedSymbols = new DateFormatSymbols(localizedLocale);
         String localChars    = localizedSymbols.getLocalPatternChars();
 
-        // different JDK versions seem to have different numbers of pattern characters 
+        // different JDK versions seem to have different numbers of pattern characters
         int lth = localChars.length() > expectedChars.length() ? expectedChars.length() :
                      localChars.length() < expectedChars.length() ? localChars.length() : expectedChars.length();
         validLocalDateSymbols = expectedChars.substring(0, lth).equals(localChars.substring(0, lth));
@@ -117,87 +117,87 @@ public class DateLocaleConverterTestCase
     public void testSetLenient() {
         // make sure that date format works as expected
         SimpleDateFormat dateFormat = new SimpleDateFormat("MMM dd, yyyy", Locale.UK);
-        
+
         // test with no leniency
         dateFormat.setLenient(false);
-        
+
         try {
-            
+
             dateFormat.parse("Feb 10, 2001");
-            
+
         } catch (ParseException e) {
             fail("Could not parse date (1) - " + e.getMessage());
         }
-        
+
         try {
-        
+
             dateFormat.parse("Feb 31, 2001");
             fail("Parsed illegal date (1)");
-        
+
         } catch (ParseException e) {
             // that's what we expected
         }
-        
+
         // test with leniency
         dateFormat.setLenient(true);
-        
+
         try {
-            
+
             dateFormat.parse("Feb 10, 2001");
-            
+
         } catch (ParseException e) {
             fail("Could not parse date (2) - " + e.getMessage());
         }
-        
+
         try {
-        
+
             dateFormat.parse("Feb 31, 2001");
-        
+
         } catch (ParseException e) {
             fail("Could not parse date (3) - " + e.getMessage());
         }
-        
+
         // now repeat tests for converter
         DateLocaleConverter converter = new DateLocaleConverter(Locale.UK, "MMM dd, yyyy");
-        
+
         // test with no leniency
         converter.setLenient(false);
         assertEquals("Set lenient failed", converter.isLenient(), false);
-        
+
         try {
-            
+
             converter.convert("Feb 10, 2001");
-            
+
         } catch (ConversionException e) {
             fail("Could not parse date (4) - " + e.getMessage());
         }
-        
+
         try {
-        
+
             converter.convert("Feb 31, 2001");
             assertEquals("Set lenient failed", converter.isLenient(), false);
             fail("Parsed illegal date (2)");
-        
+
         } catch (ConversionException e) {
             // that's what we expected
         }
-        
+
         // test with leniency
         converter.setLenient(true);
         assertEquals("Set lenient failed", converter.isLenient(), true);
-        
+
         try {
-            
+
             converter.convert("Feb 10, 2001");
-            
+
         } catch (ConversionException e) {
             fail("Could not parse date (5) - " + e.getMessage());
         }
-        
+
         try {
-        
+
             converter.convert("Feb 31, 2001");
-        
+
         } catch (ConversionException e) {
             fail("Could not parse date (6) - " + e.getMessage());
         }
@@ -212,7 +212,7 @@ public class DateLocaleConverterTestCase
         if (!validLocalDateSymbols) {
             log.error("Invalid locale symbols *** skipping testConstructorMain() **");
             return;
-        } 
+        }
 
         // ------------- Construct with localized pattern ------------
         converter = new DateLocaleConverter(defaultValue,
@@ -235,7 +235,7 @@ public class DateLocaleConverterTestCase
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a Date.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -259,9 +259,9 @@ public class DateLocaleConverterTestCase
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -278,9 +278,9 @@ public class DateLocaleConverterTestCase
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 
@@ -323,7 +323,7 @@ public class DateLocaleConverterTestCase
         if (!validLocalDateSymbols) {
             log.error("Invalid locale symbols *** skipping testConstructor_5() **");
             return;
-        } 
+        }
 
         // ------------- Construct using specified Locale --------
         converter = new DateLocaleConverter(localizedLocale, true);
@@ -362,7 +362,7 @@ public class DateLocaleConverterTestCase
         if (!validLocalDateSymbols) {
             log.error("Invalid locale symbols *** skipping testConstructor_7() **");
             return;
-        } 
+        }
 
         // ------------- Construct using specified Locale --------
         converter = new DateLocaleConverter(localizedLocale, localizedDatePattern, true);

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/DoubleLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -33,7 +33,7 @@ public class DoubleLocaleConverterTestCa
     public DoubleLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -97,7 +97,7 @@ public class DoubleLocaleConverterTestCa
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a Double.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -121,9 +121,9 @@ public class DoubleLocaleConverterTestCa
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -140,9 +140,9 @@ public class DoubleLocaleConverterTestCa
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/FloatLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -38,7 +38,7 @@ public class FloatLocaleConverterTestCas
     public FloatLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -102,7 +102,7 @@ public class FloatLocaleConverterTestCas
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Float.class here it still returns a Float.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -126,9 +126,9 @@ public class FloatLocaleConverterTestCas
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -145,9 +145,9 @@ public class FloatLocaleConverterTestCas
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 
@@ -276,8 +276,8 @@ public class FloatLocaleConverterTestCas
 
         assertEquals("Negative Float.MAX_VALUE", new Float(Float.MAX_VALUE * -1), converter.convert(fmt.format(Float.MAX_VALUE * -1)));
         assertEquals("Negative Float.MIN_VALUE", new Float(Float.MIN_VALUE * -1), converter.convert(fmt.format(Float.MIN_VALUE * -1)));
-        
-        
+
+
         try {
             converter.convert(fmt.format((double)Float.MAX_VALUE * (double)10));
             fail("Positive Too Large should throw ConversionException");
@@ -290,7 +290,7 @@ public class FloatLocaleConverterTestCas
         } catch (ConversionException e) {
             // expected result
         }
-        
+
         try {
             converter.convert(fmt.format((double)Float.MIN_VALUE / (double)10));
             fail("Positive Too Small should throw ConversionException");
@@ -315,7 +315,7 @@ public class FloatLocaleConverterTestCas
         } catch (ConversionException e) {
             fail("Zero threw ConversionException: " + e);
         }
-        
+
     }
 
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/IntegerLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/IntegerLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/IntegerLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/IntegerLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -33,7 +33,7 @@ public class IntegerLocaleConverterTestC
     public IntegerLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -80,7 +80,7 @@ public class IntegerLocaleConverterTestC
         // Convert value in the wrong format - maybe you would expect it to throw an
         // exception and return the default - it doesn't, DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // I guess this is one of the limitations of DecimalFormat 
+        // I guess this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueNoPattern(converter, "(B)", defaultIntegerValue, new Integer("1"));
 
@@ -89,14 +89,14 @@ public class IntegerLocaleConverterTestC
         // Convert with non-localized pattern - unlike the equivalent BigDecimal Test Case
         // it doesn't causes an exception in parse() - DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // Again this is one of the limitations of DecimalFormat 
+        // Again this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueWithPattern(converter, "(B)", localizedIntegerValue, defaultIntegerPattern, new Integer("1"));
 
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a Integer.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -120,9 +120,9 @@ public class IntegerLocaleConverterTestC
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -139,9 +139,9 @@ public class IntegerLocaleConverterTestC
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/LongLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -33,7 +33,7 @@ public class LongLocaleConverterTestCase
     public LongLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -80,7 +80,7 @@ public class LongLocaleConverterTestCase
         // Convert value in the wrong format - maybe you would expect it to throw an
         // exception and return the default - it doesn't, DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // I guess this is one of the limitations of DecimalFormat 
+        // I guess this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueNoPattern(converter, "(B)", defaultIntegerValue, new Long("1"));
 
@@ -89,14 +89,14 @@ public class LongLocaleConverterTestCase
         // Convert with non-localized pattern - unlike the equivalent BigDecimal Test Case
         // it doesn't causes an exception in parse() - DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // Again this is one of the limitations of DecimalFormat 
+        // Again this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueWithPattern(converter, "(B)", localizedIntegerValue, defaultIntegerPattern, new Long("1"));
 
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a Long.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -120,9 +120,9 @@ public class LongLocaleConverterTestCase
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -139,9 +139,9 @@ public class LongLocaleConverterTestCase
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverterTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverterTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/locale/converters/ShortLocaleConverterTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.beanutils.locale.converters;
 
@@ -33,7 +33,7 @@ public class ShortLocaleConverterTestCas
     public ShortLocaleConverterTestCase(String name) {
         super(name);
     }
-    
+
     // -------------------------------------------------- Overall Test Methods
 
     /**
@@ -80,7 +80,7 @@ public class ShortLocaleConverterTestCas
         // Convert value in the wrong format - maybe you would expect it to throw an
         // exception and return the default - it doesn't, DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // I guess this is one of the limitations of DecimalFormat 
+        // I guess this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueNoPattern(converter, "(B)", defaultIntegerValue, new Short("1"));
 
@@ -89,14 +89,14 @@ public class ShortLocaleConverterTestCas
         // Convert with non-localized pattern - unlike the equivalent BigDecimal Test Case
         // it doesn't causes an exception in parse() - DecimalFormat parses it
         // quite happily turning "1,234" into "1"
-        // Again this is one of the limitations of DecimalFormat 
+        // Again this is one of the limitations of DecimalFormat
         // **************************************************************************
         convertValueWithPattern(converter, "(B)", localizedIntegerValue, defaultIntegerPattern, new Short("1"));
 
 
         // **************************************************************************
         // Convert with specified type
-        // 
+        //
         // BaseLocaleConverter completely ignores the type - so even if we specify
         // Double.class here it still returns a Short.
         //  **** SHOULD IMPLEMENT THIS BEHAVIOUR ****
@@ -120,9 +120,9 @@ public class ShortLocaleConverterTestCas
 
     /**
      * Test Converter() constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_2() {
 
@@ -139,9 +139,9 @@ public class ShortLocaleConverterTestCas
 
     /**
      * Test Converter(locPattern) constructor
-     * 
+     *
      * Uses the default locale, no default value
-     * 
+     *
      */
     public void testConstructor_3() {
 

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/MemoryLeakTestCase.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.apache.commons.beanutils.memoryleaktests;
 
 import java.lang.ref.SoftReference;
@@ -40,9 +40,9 @@ import org.apache.commons.beanutils.loca
 
 /**
  * Test BeanUtils memory leaks.
- * 
+ *
  * See https://issues.apache.org/jira/browse/BEANUTILS-291
- * 
+ *
  * @author Clebert Suconic
  */
 public class MemoryLeakTestCase extends TestCase {
@@ -137,7 +137,7 @@ public class MemoryLeakTestCase extends 
         // PropertyUtilsBean uses the MethodUtils's method cache for mapped properties.
         // Uncomment the following line to check this is not just a repeat of that memory leak.
         // MethodUtils.clearCache();
-        
+
         forceGarbageCollection(); /* Try to force the garbage collector to run by filling up memory */
 
         if (someRef.get() != null) {
@@ -485,11 +485,11 @@ public class MemoryLeakTestCase extends 
             list.clear();
             list = null;
             // System.out.println("Count " + count + " : " + getMemoryStats());
-            System.gc(); 
+            System.gc();
             Thread.sleep(1000);
         }
         // System.out.println("After GC: " + getMemoryStats());
-        
+
         if (ref.get() != null) {
             throw new IllegalStateException("Your JVM is not releasing SoftReference, try running the testcase with less memory (-Xmx)");
         }

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/CustomInteger.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/CustomInteger.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/CustomInteger.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/CustomInteger.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.apache.commons.beanutils.memoryleaktests.pojotests;
 
 /**

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/SomeMappedPojo.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/SomeMappedPojo.java?rev=1452028&r1=1452027&r2=1452028&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/SomeMappedPojo.java (original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/memoryleaktests/pojotests/SomeMappedPojo.java Sun Mar  3 11:19:49 2013
@@ -5,15 +5,15 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.apache.commons.beanutils.memoryleaktests.pojotests;
 
 import java.util.HashMap;



Mime
View raw message