commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang StringUtilsTest.java
Date Wed, 13 Aug 2003 21:32:28 GMT
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);
  +    }
   }
   
  
  
  

Mime
View raw message