ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/TreeSetTest.java
(Generate patch)

Comparing jsr166/src/test/tck/TreeSetTest.java (file contents):
Revision 1.11 by jsr166, Sun Nov 22 18:57:17 2009 UTC vs.
Revision 1.15 by jsr166, Wed Sep 1 20:12:40 2010 UTC

# Line 11 | Line 11 | import java.io.*;
11  
12   public class TreeSetTest extends JSR166TestCase {
13      public static void main(String[] args) {
14 <        junit.textui.TestRunner.run (suite());
14 >        junit.textui.TestRunner.run(suite());
15      }
16      public static Test suite() {
17          return new TestSuite(TreeSetTest.class);
# Line 208 | Line 208 | public class TreeSetTest extends JSR166T
208              shouldThrow();
209          } catch (NullPointerException success) {}
210      }
211 +
212      /**
213       * addAll of a collection with null elements throws NPE
214       */
# Line 219 | Line 220 | public class TreeSetTest extends JSR166T
220              shouldThrow();
221          } catch (NullPointerException success) {}
222      }
223 +
224      /**
225       * addAll of a collection with any null elements throws NPE after
226       * possibly adding some elements
# Line 380 | Line 382 | public class TreeSetTest extends JSR166T
382  
383          Object e4 = q.lower(zero);
384          assertNull(e4);
383
385      }
386  
387      /**
# Line 399 | Line 400 | public class TreeSetTest extends JSR166T
400  
401          Object e4 = q.higher(six);
402          assertNull(e4);
402
403      }
404  
405      /**
# Line 418 | Line 418 | public class TreeSetTest extends JSR166T
418  
419          Object e4 = q.floor(zero);
420          assertNull(e4);
421
421      }
422  
423      /**
# Line 437 | Line 436 | public class TreeSetTest extends JSR166T
436  
437          Object e4 = q.ceiling(six);
438          assertNull(e4);
440
439      }
440  
441      /**
# Line 494 | Line 492 | public class TreeSetTest extends JSR166T
492      /**
493       * iterator.remove removes current element
494       */
495 <    public void testIteratorRemove () {
495 >    public void testIteratorRemove() {
496          final TreeSet q = new TreeSet();
497          q.add(new Integer(2));
498          q.add(new Integer(1));
# Line 882 | Line 880 | public class TreeSetTest extends JSR166T
880                  // BitSet should support this! Test would run much faster
881                  while (element >= min) {
882                      if (bs.get(element))
883 <                        return(element);
883 >                        return element;
884                      element--;
885                  }
886                  return -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines