KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > oscache > plugins > clustersupport > TestCompleteClustering


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

5 package com.opensymphony.oscache.plugins.clustersupport;
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.plugins.clustersupport package.
13  * It invokes all the test suites of all the other classes of the package.
14  *
15  * @author <a HREF="&#109;a&#105;&#108;&#116;&#111;:chris&#64;swebtec.&#99;&#111;&#109;">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 JavaDoc 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 JavaDoc[] args) {
31         // Run the test suite
32
junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
33         testRunner.setLoading(false);
34
35         String JavaDoc[] 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 }
54
Popular Tags