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/collections/src/test/org/apache/commons/collections TestCollectionUtils.java
Date Tue, 03 Aug 2004 18:20:42 GMT
scolebourne    2004/08/03 11:20:42

  Modified:    collections/src/test/org/apache/commons/collections
                        TestCollectionUtils.java
  Log:
  Add extra test case to clarify bug 30408
  
  Revision  Changes    Path
  1.41      +13 -2     jakarta-commons/collections/src/test/org/apache/commons/collections/TestCollectionUtils.java
  
  Index: TestCollectionUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestCollectionUtils.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- TestCollectionUtils.java	17 Jul 2004 21:38:33 -0000	1.40
  +++ TestCollectionUtils.java	3 Aug 2004 18:20:41 -0000	1.41
  @@ -1159,7 +1159,18 @@
               // expected
           }             
       }
  -     
  +
  +    public void testTransformedCollection_2() {
  +        List list = new ArrayList();
  +        list.add("1");
  +        list.add("2");
  +        list.add("3");
  +        Collection result = CollectionUtils.transformedCollection(list, TRANSFORM_TO_INTEGER);
  +        assertEquals(true, result.contains("1"));  // untransformed
  +        assertEquals(true, result.contains("2"));  // untransformed
  +        assertEquals(true, result.contains("3"));  // untransformed
  +    }
  +
       public void testSynchronizedCollection() {
           Collection col = CollectionUtils.synchronizedCollection(new ArrayList());
           assertTrue("Returned object should be a SynchronizedCollection.",
  
  
  

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