01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.oscache.base;
06:
07: import com.opensymphony.oscache.base.algorithm.TestCompleteAlgorithm;
08: import com.opensymphony.oscache.base.events.TestCompleteEvents;
09: 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 476 2007-07-01 10:35:29Z larst $
20: * @version $Revision: 476 $
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 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[] args) {
37: // Run the test suite
38: junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
39: testRunner.setLoading(false);
40:
41: String[] 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(TestConcurrency2.suite());
58: suite.addTest(TestCompleteAlgorithm.suite());
59: suite.addTest(TestCompleteEvents.suite());
60:
61: return suite;
62: }
63: }
|