You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by gg...@apache.org on 2003/08/13 23:32:28 UTC

cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang StringUtilsTest.java

ggregory    2003/08/13 14:32:28

  Modified:    lang/src/test/org/apache/commons/lang StringUtilsTest.java
  Log:
  
  Refactor "" string literals to use the new:
  public static final String EMPTY = ""
  I made EMPTY public since I plan on using it when replacing most of our internal StringUtil class with this StringUtil.
  
  Revision  Changes    Path
  1.45      +9 -1      jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsTest.java
  
  Index: StringUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsTest.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- StringUtilsTest.java	1 Aug 2003 23:20:06 -0000	1.44
  +++ StringUtilsTest.java	13 Aug 2003 21:32:27 -0000	1.45
  @@ -58,6 +58,7 @@
   import java.util.Arrays;
   import java.util.Iterator;
   
  +import junit.framework.Assert;
   import junit.framework.Test;
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
  @@ -970,5 +971,12 @@
           }
       }
   
  +    /**
  +     * A sanity check for {@link StringUtils.EMPTY}.
  +     */
  +    public void testEMPTY() {
  +        Assert.assertNotNull(StringUtils.EMPTY);
  +        Assert.assertEquals("", StringUtils.EMPTY);
  +    }
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org