[cvs] / jsr166 / src / test / tck / ArrayDeque8Test.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayDeque8Test.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Sat Mar 11 17:33:32 2017 UTC revision 1.4, Sun Jan 7 19:39:23 2018 UTC
# Line 83  Line 83 
83              assertEquals((Integer) 1, q.peekLast());              assertEquals((Integer) 1, q.peekLast());
84              assertEquals(maxArraySize - 1, q.size());              assertEquals(maxArraySize - 1, q.size());
85    
             ArrayDeque qq = q;  
86              ArrayDeque smallish = new ArrayDeque(              ArrayDeque smallish = new ArrayDeque(
87                  Collections.nCopies(Integer.MAX_VALUE - q.size() + 1, e));                  Collections.nCopies(Integer.MAX_VALUE - q.size() + 1, e));
88              assertThrows(              assertThrows(
89                  IllegalStateException.class,                  IllegalStateException.class,
90                  () -> qq.addAll(qq),                  () -> q.addAll(q),
91                  () -> qq.addAll(smallish),                  () -> q.addAll(smallish),
92                  () -> smallish.addAll(qq));                  () -> smallish.addAll(q));
93          }          }
94      }      }
95    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8