KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > archive > queue > MemQueueTest


1 /* MemQueueTest
2  *
3  * $Id: MemQueueTest.java,v 1.1.24.1 2007/01/13 01:31:39 stack-sf Exp $
4  *
5  * Created Tue Jan 20 14:17:59 PST 2004
6  *
7  * Copyright (C) 2004 Internet Archive.
8  *
9  * This file is part of the Heritrix web crawler (crawler.archive.org).
10  *
11  * Heritrix is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser Public License as published by
13  * the Free Software Foundation; either version 2.1 of the License, or
14  * any later version.
15  *
16  * Heritrix is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser Public License
22  * along with Heritrix; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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 JavaDoc 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 JavaDoc 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      * test methods
67      */

68     protected Queue<Object JavaDoc> makeQueue() {
69         return new MemQueue<Object JavaDoc>();
70     }
71
72     // TODO - implement test methods in MemQueueTest
73
}
74
75
Popular Tags