01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.oscache.plugins.clustersupport;
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.plugins.clustersupport package.
13: * It invokes all the test suites of all the other classes of the package.
14: *
15: * @author <a href="mailto:chris@swebtec.com">Chris Miller</a>
16: */
17: public final class TestCompleteClustering extends TestCase {
18: /**
19: * Constructor for the osCache project main test program
20: */
21: public TestCompleteClustering(String str) {
22: super (str);
23: }
24:
25: /**
26: * Main method which is called to perform the tests
27: * <p>
28: * @param args Arguments received
29: */
30: public static void main(String[] args) {
31: // Run the test suite
32: junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
33: testRunner.setLoading(false);
34:
35: String[] args2 = { TestCompleteClustering.class.getName() };
36: testRunner.start(args2);
37: }
38:
39: /**
40: * Test suite required to test this project
41: * <p>
42: * @return suite The test suite
43: */
44: public static Test suite() {
45: // Add all the tests suite of all the project classes
46: TestSuite suite = new TestSuite("Test all OSCache clustering");
47: suite.addTest(TestJavaGroupsBroadcastingListener.suite());
48: suite.addTest(TestJMSBroadcastingListener.suite());
49: suite.addTest(TestJMS10BroadcastingListener.suite());
50:
51: return suite;
52: }
53: }
|