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

Comparing jsr166/src/test/tck/CopyOnWriteArraySetTest.java (file contents):
Revision 1.32 by jsr166, Sat Apr 25 04:55:30 2015 UTC vs.
Revision 1.33 by jsr166, Fri May 15 18:21:19 2015 UTC

# Line 322 | Line 322 | public class CopyOnWriteArraySetTest ext
322       * not store the objects inside the set
323       */
324      public void testToArray_ArrayStoreException() {
325 +        CopyOnWriteArraySet c = new CopyOnWriteArraySet();
326 +        c.add("zfasdfsdf");
327 +        c.add("asdadasd");
328          try {
326            CopyOnWriteArraySet c = new CopyOnWriteArraySet();
327            c.add("zfasdfsdf");
328            c.add("asdadasd");
329              c.toArray(new Long[5]);
330              shouldThrow();
331          } catch (ArrayStoreException success) {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines