KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > oscache > base > TestCompleteBase


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

5 package com.opensymphony.oscache.base;
6
7 import com.opensymphony.oscache.base.algorithm.TestCompleteAlgorithm;
8 import com.opensymphony.oscache.base.events.TestCompleteEvents;
9 import com.opensymphony.oscache.util.TestFastCronParser;
10
11 import junit.framework.Test;
12 import junit.framework.TestCase;
13 import junit.framework.TestSuite;
14
15 /**
16  * Test class for the com.opensymphony.oscache.base package.
17  * It invokes all the test suites of all the other classes of the package.
18  *
19  * $Id: TestCompleteBase.java,v 1.1 2005/06/17 05:06:48 dres Exp $
20  * @version $Revision: 1.1 $
21  * @author <a HREF="mailto:abergevin@pyxis-tech.com">Alain Bergevin</a>
22  */

23 public final class TestCompleteBase extends TestCase {
24     /**
25      * Constructor for the osCache project main test program
26      */

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

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

50     public static Test suite() {
51         // Add all the tests suite of all the project classes
52
TestSuite suite = new TestSuite("Test all base cache modules");
53         suite.addTest(TestFastCronParser.suite());
54         suite.addTest(TestCacheEntry.suite());
55         suite.addTest(TestCache.suite());
56         suite.addTest(TestConcurrency.suite());
57         suite.addTest(TestCompleteAlgorithm.suite());
58         suite.addTest(TestCompleteEvents.suite());
59
60         return suite;
61     }
62 }
63
Popular Tags