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 TestBagUtils.java
Date Wed, 24 Dec 2003 17:31:41 GMT
scolebourne    2003/12/24 09:31:41

  Modified:    collections/src/test/org/apache/commons/collections
                        TestBagUtils.java
  Log:
  Solve deprecations, fix bug in test
  
  Revision  Changes    Path
  1.5       +5 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/TestBagUtils.java
  
  Index: TestBagUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestBagUtils.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestBagUtils.java	16 Nov 2003 00:05:47 -0000	1.4
  +++ TestBagUtils.java	24 Dec 2003 17:31:41 -0000	1.5
  @@ -59,12 +59,14 @@
   
   import junit.framework.Test;
   
  +import org.apache.commons.collections.bag.HashBag;
   import org.apache.commons.collections.bag.PredicatedBag;
   import org.apache.commons.collections.bag.PredicatedSortedBag;
   import org.apache.commons.collections.bag.SynchronizedBag;
   import org.apache.commons.collections.bag.SynchronizedSortedBag;
   import org.apache.commons.collections.bag.TransformedBag;
   import org.apache.commons.collections.bag.TransformedSortedBag;
  +import org.apache.commons.collections.bag.TreeBag;
   import org.apache.commons.collections.bag.UnmodifiableBag;
   import org.apache.commons.collections.bag.UnmodifiableSortedBag;
   
  @@ -217,7 +219,7 @@
       public void testTypedSortedBag() {
           Bag bag = BagUtils.typedSortedBag(new TreeBag(), stringClass);      
           assertTrue("Returned object should be a TypedSortedBag.",
  -            bag instanceof PredicatedBag);
  +            bag instanceof PredicatedSortedBag);
           try {
               bag = BagUtils.typedSortedBag(null, stringClass);
               fail("Expecting IllegalArgumentException for null bag.");
  
  
  

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