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

Comparing jsr166/src/test/tck/TreeSubSetTest.java (file contents):
Revision 1.10 by jsr166, Sun Nov 22 18:57:17 2009 UTC vs.
Revision 1.13 by jsr166, Wed Aug 25 01:44:48 2010 UTC

# Line 11 | Line 11 | import java.io.*;
11  
12   public class TreeSubSetTest 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(TreeSubSetTest.class);
# Line 175 | Line 175 | public class TreeSubSetTest extends JSR1
175              shouldThrow();
176          } catch (NullPointerException success) {}
177      }
178 +
179      /**
180       * addAll of a collection with null elements throws NPE
181       */
# Line 186 | Line 187 | public class TreeSubSetTest extends JSR1
187              shouldThrow();
188          } catch (NullPointerException success) {}
189      }
190 +
191      /**
192       * addAll of a collection with any null elements throws NPE after
193       * possibly adding some elements
# Line 335 | Line 337 | public class TreeSubSetTest extends JSR1
337  
338          Object e4 = q.lower(zero);
339          assertNull(e4);
338
340      }
341  
342      /**
# Line 354 | Line 355 | public class TreeSubSetTest extends JSR1
355  
356          Object e4 = q.higher(six);
357          assertNull(e4);
357
358      }
359  
360      /**
# Line 373 | Line 373 | public class TreeSubSetTest extends JSR1
373  
374          Object e4 = q.floor(zero);
375          assertNull(e4);
376
376      }
377  
378      /**
# Line 392 | Line 391 | public class TreeSubSetTest extends JSR1
391  
392          Object e4 = q.ceiling(six);
393          assertNull(e4);
395
394      }
395  
396      /**
# Line 449 | Line 447 | public class TreeSubSetTest extends JSR1
447      /**
448       * iterator.remove removes current element
449       */
450 <    public void testIteratorRemove () {
450 >    public void testIteratorRemove() {
451          final NavigableSet q = set0();
452          q.add(new Integer(2));
453          q.add(new Integer(1));
# Line 670 | Line 668 | public class TreeSubSetTest extends JSR1
668              shouldThrow();
669          } catch (NullPointerException success) {}
670      }
671 +
672      /**
673       * addAll of a collection with null elements throws NPE
674       */
# Line 681 | Line 680 | public class TreeSubSetTest extends JSR1
680              shouldThrow();
681          } catch (NullPointerException success) {}
682      }
683 +
684      /**
685       * addAll of a collection with any null elements throws NPE after
686       * possibly adding some elements
# Line 830 | Line 830 | public class TreeSubSetTest extends JSR1
830  
831          Object e4 = q.lower(zero);
832          assertNull(e4);
833
833      }
834  
835      /**
# Line 849 | Line 848 | public class TreeSubSetTest extends JSR1
848  
849          Object e4 = q.higher(m6);
850          assertNull(e4);
852
851      }
852  
853      /**
# Line 868 | Line 866 | public class TreeSubSetTest extends JSR1
866  
867          Object e4 = q.floor(zero);
868          assertNull(e4);
871
869      }
870  
871      /**
# Line 887 | Line 884 | public class TreeSubSetTest extends JSR1
884  
885          Object e4 = q.ceiling(m6);
886          assertNull(e4);
890
887      }
888  
889      /**
# Line 944 | Line 940 | public class TreeSubSetTest extends JSR1
940      /**
941       * iterator.remove removes current element
942       */
943 <    public void testDescendingIteratorRemove () {
943 >    public void testDescendingIteratorRemove() {
944          final NavigableSet q = dset0();
945          q.add(new Integer(2));
946          q.add(new Integer(1));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines