Revision: | 1.1 |
Committed: | Wed May 14 21:30:49 2003 UTC (21 years ago) by tim |
Branch: | MAIN |
Log Message: | Moved main source rooted at . to ./src/main Moved test source rooted at ./etc/testcases to ./src/test |
# | Content |
---|---|
1 | import java.util.concurrent.ArrayBlockingQueue; |
2 | import junit.framework.TestCase; |
3 | |
4 | /** |
5 | * Tests the ArrayBlockingQueue implementation. |
6 | */ |
7 | public class ArrayBlockingQueueTest extends TestCase { |
8 | |
9 | public void testCapacity () { |
10 | final int CAP = 2; |
11 | ArrayBlockingQueue<Integer> q = new ArrayBlockingQueue<Integer>(CAP); |
12 | |
13 | //assertEquals("capacity should equal constructor argument", CAP, q.capacity()); |
14 | } |
15 | } |