| * Written by Doug Lea with assistance from members of JCP JSR-166 |
| * Expert Group and released to the public domain, as explained at |
| * http://creativecommons.org/publicdomain/zero/1.0/ |
| * Other contributors include Andrew Wright, Jeffrey Hayes, |
| import java.util.concurrent.ArrayBlockingQueue; |
| import java.util.concurrent.BlockingQueue; |
| // In the upstream sources this class was nested inside ArrayBlockingQueueTests. |
| // It was extracted to the top level because the CTS runner does not support |
| // nested test classes. The same transformation was applied to all similar |
| // classes from the jsr166 suite (see the parent CL for the complete list). This |
| // should be reverted after CTS runner is fixed. |
| public class ArrayBlockingQueueFairTest extends BlockingQueueTest { |
| protected BlockingQueue emptyCollection() { |
| return new ArrayBlockingQueue(SIZE, true); |