KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > oscache > base > events > TestCompleteEvents


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

5 package com.opensymphony.oscache.base.events;
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.base.events package.
13  * It invokes all the test suites of all the other classes of the package.
14  *
15  * $Id: TestCompleteEvents.java,v 1.1 2005/06/17 05:07:00 dres Exp $
16  * @version $Revision: 1.1 $
17  * @author <a HREF="mailto:abergevin@pyxis-tech.com">Alain Bergevin</a>
18  */

19 public final class TestCompleteEvents extends TestCase {
20     /**
21      * Constructor for the oscache module main test program
22      */

23     public TestCompleteEvents(String JavaDoc str) {
24         super(str);
25     }
26
27     /**
28      * Main method which is called to perform the tests
29      * <p>
30      * @param args Arguments received
31      */

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

46     public static Test suite() {
47         // Add all the tests suite of all the project classes
48
TestSuite suite = new TestSuite("Test all base cache modules");
49         suite.addTest(TestCacheEntryEvent.suite());
50         suite.addTest(TestCacheMapAccessEvent.suite());
51         suite.addTest(TestScopeEvent.suite());
52
53         return suite;
54     }
55 }
56
Popular Tags