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

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

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

revision 1.18, Sat Nov 21 10:25:05 2009 UTC revision 1.19, Sat Nov 21 10:29:49 2009 UTC
# Line 104  Line 104 
104       * Queue contains all elements of collection used to initialize       * Queue contains all elements of collection used to initialize
105       */       */
106      public void testConstructor7() {      public void testConstructor7() {
         try {  
107              Integer[] ints = new Integer[SIZE];              Integer[] ints = new Integer[SIZE];
108              for (int i = 0; i < SIZE; ++i)              for (int i = 0; i < SIZE; ++i)
109                  ints[i] = new Integer(i);                  ints[i] = new Integer(i);
# Line 112  Line 111 
111              for (int i = 0; i < SIZE; ++i)              for (int i = 0; i < SIZE; ++i)
112                  assertEquals(ints[i], q.poll());                  assertEquals(ints[i], q.poll());
113          }          }
         finally {}  
     }  
114    
115      /**      /**
116       * Queue transitions from empty to full when elements added       * Queue transitions from empty to full when elements added

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8