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

Comparing jsr166/src/test/tck/CopyOnWriteArrayListTest.java (file contents):
Revision 1.12 by jsr166, Sat Nov 21 10:25:05 2009 UTC vs.
Revision 1.13 by jsr166, Sat Nov 21 17:38:05 2009 UTC

# Line 410 | Line 410 | public class CopyOnWriteArrayListTest ex
410              c.add("asdadasd");
411              c.toArray(new Long[5]);
412              shouldThrow();
413 <        } catch (ArrayStoreException e) {}
413 >        } catch (ArrayStoreException success) {}
414      }
415  
416      /**
# Line 421 | Line 421 | public class CopyOnWriteArrayListTest ex
421              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
422              c.get(-1);
423              shouldThrow();
424 <        } catch (IndexOutOfBoundsException e) {}
424 >        } catch (IndexOutOfBoundsException success) {}
425      }
426  
427      /**
# Line 434 | Line 434 | public class CopyOnWriteArrayListTest ex
434              c.add("asdad");
435              c.get(100);
436              shouldThrow();
437 <        } catch (IndexOutOfBoundsException e) {}
437 >        } catch (IndexOutOfBoundsException success) {}
438      }
439  
440      /**
# Line 445 | Line 445 | public class CopyOnWriteArrayListTest ex
445              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
446              c.set(-1,"qwerty");
447              shouldThrow();
448 <        } catch (IndexOutOfBoundsException e) {}
448 >        } catch (IndexOutOfBoundsException success) {}
449      }
450  
451      /**
# Line 458 | Line 458 | public class CopyOnWriteArrayListTest ex
458              c.add("asdad");
459              c.set(100, "qwerty");
460              shouldThrow();
461 <        } catch (IndexOutOfBoundsException e) {}
461 >        } catch (IndexOutOfBoundsException success) {}
462      }
463  
464      /**
# Line 469 | Line 469 | public class CopyOnWriteArrayListTest ex
469              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
470              c.add(-1,"qwerty");
471              shouldThrow();
472 <        } catch (IndexOutOfBoundsException e) {}
472 >        } catch (IndexOutOfBoundsException success) {}
473      }
474  
475      /**
# Line 482 | Line 482 | public class CopyOnWriteArrayListTest ex
482              c.add("asdasdasd");
483              c.add(100, "qwerty");
484              shouldThrow();
485 <        } catch (IndexOutOfBoundsException e) {}
485 >        } catch (IndexOutOfBoundsException success) {}
486      }
487  
488      /**
# Line 493 | Line 493 | public class CopyOnWriteArrayListTest ex
493              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
494              c.remove(-1);
495              shouldThrow();
496 <        } catch (IndexOutOfBoundsException e) {}
496 >        } catch (IndexOutOfBoundsException success) {}
497      }
498  
499      /**
# Line 506 | Line 506 | public class CopyOnWriteArrayListTest ex
506              c.add("adasdasd");
507              c.remove(100);
508              shouldThrow();
509 <        } catch (IndexOutOfBoundsException e) {}
509 >        } catch (IndexOutOfBoundsException success) {}
510      }
511  
512      /**
# Line 517 | Line 517 | public class CopyOnWriteArrayListTest ex
517              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
518              c.addAll(-1,new LinkedList());
519              shouldThrow();
520 <        } catch (IndexOutOfBoundsException e) {}
520 >        } catch (IndexOutOfBoundsException success) {}
521      }
522  
523      /**
# Line 530 | Line 530 | public class CopyOnWriteArrayListTest ex
530              c.add("asdasdasd");
531              c.addAll(100, new LinkedList());
532              shouldThrow();
533 <        } catch (IndexOutOfBoundsException e) {}
533 >        } catch (IndexOutOfBoundsException success) {}
534      }
535  
536      /**
# Line 541 | Line 541 | public class CopyOnWriteArrayListTest ex
541              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
542              c.listIterator(-1);
543              shouldThrow();
544 <        } catch (IndexOutOfBoundsException e) {}
544 >        } catch (IndexOutOfBoundsException success) {}
545      }
546  
547      /**
# Line 554 | Line 554 | public class CopyOnWriteArrayListTest ex
554              c.add("asdasdas");
555              c.listIterator(100);
556              shouldThrow();
557 <        } catch (IndexOutOfBoundsException e) {}
557 >        } catch (IndexOutOfBoundsException success) {}
558      }
559  
560      /**
# Line 564 | Line 564 | public class CopyOnWriteArrayListTest ex
564          try {
565              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
566              c.subList(-1,100);
567
567              shouldThrow();
568 <        } catch (IndexOutOfBoundsException e) {}
568 >        } catch (IndexOutOfBoundsException success) {}
569      }
570  
571      /**
# Line 578 | Line 577 | public class CopyOnWriteArrayListTest ex
577              c.add("asdasd");
578              c.subList(1,100);
579              shouldThrow();
580 <        } catch (IndexOutOfBoundsException e) {}
580 >        } catch (IndexOutOfBoundsException success) {}
581      }
582  
583      /**
# Line 589 | Line 588 | public class CopyOnWriteArrayListTest ex
588          try {
589              CopyOnWriteArrayList c = new CopyOnWriteArrayList();
590              c.subList(3,1);
592
591              shouldThrow();
592 <        } catch (IndexOutOfBoundsException e) {}
592 >        } catch (IndexOutOfBoundsException success) {}
593      }
594  
595      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines