commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang WordUtilsTest.java
Date Fri, 08 Oct 2004 22:10:23 GMT
scolebourne    2004/10/08 15:10:23

  Modified:    lang/src/test/org/apache/commons/lang WordUtilsTest.java
  Log:
  Extra tests based on Javadoc
  
  Revision  Changes    Path
  1.8       +10 -1     jakarta-commons/lang/src/test/org/apache/commons/lang/WordUtilsTest.java
  
  Index: WordUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/WordUtilsTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WordUtilsTest.java	3 Jun 2004 03:49:47 -0000	1.7
  +++ WordUtilsTest.java	8 Oct 2004 22:10:23 -0000	1.8
  @@ -184,6 +184,9 @@
           assertEquals("I Am+Here-123", WordUtils.capitalize("I Am+Here-123", chars) );
           assertEquals("I+Am-HERE 123", WordUtils.capitalize("i+am-HERE 123", chars) );
           assertEquals("I-AM HERE+123", WordUtils.capitalize("I-AM HERE+123", chars) );
  +        chars = new char[] {'.'};
  +        assertEquals("I aM.Fine", WordUtils.capitalize("i aM.fine", chars) );
  +        assertEquals("I Am.fine", WordUtils.capitalize("i am.fine", null) );
       }
   
       public void testCapitalizeFully_String() {
  @@ -211,6 +214,9 @@
           assertEquals("I Am+Here-123", WordUtils.capitalizeFully("I Am+Here-123", chars)
);
           assertEquals("I+Am-Here 123", WordUtils.capitalizeFully("i+am-HERE 123", chars)
);
           assertEquals("I-Am Here+123", WordUtils.capitalizeFully("I-AM HERE+123", chars)
);
  +        chars = new char[] {'.'};
  +        assertEquals("I am.Fine", WordUtils.capitalizeFully("i aM.fine", chars) );
  +        assertEquals("I Am.fine", WordUtils.capitalizeFully("i am.fine", null) );
       }
   
       public void testUncapitalize_String() {
  @@ -238,6 +244,9 @@
           assertEquals("i+am here-123", WordUtils.uncapitalize("I+Am Here-123", chars) );
           assertEquals("i-am+hERE 123", WordUtils.uncapitalize("i-am+HERE 123", chars) );
           assertEquals("i aM-hERE+123", WordUtils.uncapitalize("I AM-HERE+123", chars) );
  +        chars = new char[] {'.'};
  +        assertEquals("i AM.fINE", WordUtils.uncapitalize("I AM.FINE", chars) );
  +        assertEquals("i aM.FINE", WordUtils.uncapitalize("I AM.FINE", null) );
       }
       
       public void testSwapCase_String() {
  
  
  

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


Mime
View raw message