commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sul...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang RandomStringUtilsTest.java
Date Tue, 08 Oct 2002 19:01:40 GMT
sullis      2002/10/08 12:01:39

  Modified:    lang/src/test/org/apache/commons/lang
                        RandomStringUtilsTest.java
  Log:
  corrected assert message String's
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-commons/lang/src/test/org/apache/commons/lang/RandomStringUtilsTest.java
  
  Index: RandomStringUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/RandomStringUtilsTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RandomStringUtilsTest.java	19 Jul 2002 03:35:55 -0000	1.1
  +++ RandomStringUtilsTest.java	8 Oct 2002 19:01:39 -0000	1.2
  @@ -94,13 +94,13 @@
        */
       public void testRandomStringUtils() {
           String r1 = RandomStringUtils.random(50);
  -        assertEquals("random(5) length", 50, r1.length());
  +        assertEquals("random(50) length", 50, r1.length());
           String r2 = RandomStringUtils.random(50);
  -        assertEquals("random(5) length", 50, r2.length());
  +        assertEquals("random(50) length", 50, r2.length());
           assertTrue("!r1.equals(r2)", !r1.equals(r2));
           
           r1 = RandomStringUtils.randomAscii(50);
  -        assertEquals("randomAscii(10) length", 50, r1.length());
  +        assertEquals("randomAscii(50) length", 50, r1.length());
           for(int i = 0; i < r1.length(); i++) {
               assertTrue("char between 32 and 127", (int) r1.charAt(i) >= 32 &&
(int) r1.charAt(i) <= 127);
           }        
  
  
  

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


Mime
View raw message