[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.6, Sun Oct 5 23:00:39 2003 UTC revision 1.9, Wed Jan 7 01:13:50 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * Written by members of JCP JSR-166 Expert Group and released to the   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * public domain. Use, modify, and redistribute this code in any way   * Expert Group and released to the public domain, as explained at
4   * without acknowledgement. Other contributors include Andrew Wright,   * http://creativecommons.org/licenses/publicdomain
5   * Jeffrey Hayes, Pat Fischer, Mike Judd.   * Other contributors include Andrew Wright, Jeffrey Hayes,
6     * Pat Fisher, Mike Judd.
7   */   */
8    
9    
# Line 743  Line 744 
744      }      }
745    
746      /**      /**
747       * toArray with incompatable array type throws CCE       * toArray with incompatible array type throws CCE
748       */       */
749      public void testToArray1_BadArg() {      public void testToArray1_BadArg() {
750          try {          try {
# Line 993  Line 994 
994              for (int i = 0; i < SIZE; ++i)              for (int i = 0; i < SIZE; ++i)
995                  assertEquals(l.get(i), new Integer(i));                  assertEquals(l.get(i), new Integer(i));
996              t.join();              t.join();
997              assertTrue(q.size() + l.size() == SIZE+1);              assertTrue(q.size() + l.size() >= SIZE);
998          } catch(Exception e){          } catch(Exception e){
999              unexpectedException();              unexpectedException();
1000          }          }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8