1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 package org.archive.queue;
27
28 import junit.framework.Test;
29 import junit.framework.TestSuite;
30
31 /***
32 * JUnit test suite for MemQueue
33 *
34 * @author <a href="mailto:me@jamesc.net">James Casey</a>
35 * @version $ Id$
36 */
37 public class MemQueueTest extends QueueTestBase {
38 /***
39 * Create a new MemQueueTest object
40 *
41 * @param testName the name of the test
42 */
43 public MemQueueTest(final String testName) {
44 super(testName);
45 }
46
47 /***
48 * run all the tests for MemQueueTest
49 *
50 * @param argv the command line arguments
51 */
52 public static void main(String argv[]) {
53 junit.textui.TestRunner.run(suite());
54 }
55
56 /***
57 * return the suite of tests for MemQueueTest
58 *
59 * @return the suite of test
60 */
61 public static Test suite() {
62 return new TestSuite(MemQueueTest.class);
63 }
64
65
66
67
68 protected Queue<Object> makeQueue() {
69 return new MemQueue<Object>();
70 }
71
72
73 }
74