KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > oscache > base > algorithm > TestCompleteAlgorithm


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.oscache.base.algorithm;
6
7 import junit.framework.Test;
8 import junit.framework.TestCase;
9 import junit.framework.TestSuite;
10
11 /**
12  * Test class for the com.opensymphony.oscache.base.algorithm package.
13  * It invokes all the test suites of all the other classes of the package,
14  * except abstract ones because they are tested via final ones.
15  *
16  * $Id: TestCompleteAlgorithm.java,v 1.1 2005/06/17 05:07:08 dres Exp $
17  * @version $Revision: 1.1 $
18  * @author <a HREF="mailto:abergevin@pyxis-tech.com">Alain Bergevin</a>
19  */

20 public final class TestCompleteAlgorithm extends TestCase {
21     /**
22      * Constructor for the oscache project main test program
23      */

24     public TestCompleteAlgorithm(String JavaDoc str) {
25         super(str);
26     }
27
28     /**
29      * Main method which is called to perform the tests
30      * <p>
31      * @param args Arguments received
32      */

33     public static void main(String JavaDoc[] args) {
34         // Run the test suite
35
junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
36         testRunner.setLoading(false);
37
38         String JavaDoc[] args2 = {TestCompleteAlgorithm.class.getName()};
39         testRunner.start(args2);
40     }
41
42     /**
43      * Test suite required to test this project
44      * <p>
45      * @return suite The test suite
46      */

47     public static Test suite() {
48         // Add all the tests suite of all the project classes
49
TestSuite suite = new TestSuite("Test all base algorithm cache modules");
50         suite.addTest(TestFIFOCache.suite());
51         suite.addTest(TestLRUCache.suite());
52         suite.addTest(TestUnlimitedCache.suite());
53
54         return suite;
55     }
56 }
57
Popular Tags