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/enum EnumTest.java ValuedEnumTest.java
Date Thu, 31 Jul 2003 22:36:39 GMT
scolebourne    2003/07/31 15:36:39

  Modified:    lang/src/test/org/apache/commons/lang/enum EnumTest.java
                        ValuedEnumTest.java
  Log:
  Extra tests suggested by Clover
  
  Revision  Changes    Path
  1.9       +4 -2      jakarta-commons/lang/src/test/org/apache/commons/lang/enum/EnumTest.java
  
  Index: EnumTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/enum/EnumTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- EnumTest.java	30 Jul 2003 23:13:09 -0000	1.8
  +++ EnumTest.java	31 Jul 2003 22:36:39 -0000	1.9
  @@ -119,7 +119,9 @@
       }
   
       public void testToString() {
  -        assertEquals("ColorEnum[Red]", ColorEnum.RED.toString());
  +        String toString = ColorEnum.RED.toString();
  +        assertEquals("ColorEnum[Red]", toString);
  +        assertSame(toString, ColorEnum.RED.toString());
       }
   
       public void testIterator() {
  
  
  
  1.4       +4 -2      jakarta-commons/lang/src/test/org/apache/commons/lang/enum/ValuedEnumTest.java
  
  Index: ValuedEnumTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/enum/ValuedEnumTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ValuedEnumTest.java	22 May 2003 22:00:06 -0000	1.3
  +++ ValuedEnumTest.java	31 Jul 2003 22:36:39 -0000	1.4
  @@ -109,7 +109,9 @@
       }
   
       public void testToString() {
  -        assertEquals("ValuedColorEnum[Red=1]", ValuedColorEnum.RED.toString());
  +        String toString = ValuedColorEnum.RED.toString();
  +        assertEquals("ValuedColorEnum[Red=1]", toString);
  +        assertSame(toString, ValuedColorEnum.RED.toString());
       }
   
       public void testIterator() {
  
  
  

---------------------------------------------------------------------
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