01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.oscache.base.algorithm;
06:
07: import junit.framework.Test;
08: import junit.framework.TestCase;
09: 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 254 2005-06-17 05:07:38Z dres $
17: * @version $Revision: 254 $
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 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[] args) {
34: // Run the test suite
35: junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
36: testRunner.setLoading(false);
37:
38: String[] 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(
50: "Test all base algorithm cache modules");
51: suite.addTest(TestFIFOCache.suite());
52: suite.addTest(TestLRUCache.suite());
53: suite.addTest(TestUnlimitedCache.suite());
54:
55: return suite;
56: }
57: }
|