KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > monitor > MonitorSUITE


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package test.compliance.monitor;
9
10 import junit.framework.Test;
11 import junit.framework.TestSuite;
12
13 /**
14  * Tests for the monitor service.
15  *
16  * @author <a HREF="mailto:AdrianBrock@HappeningTimes.com">Adrian Brock</a>.
17  */

18 public class MonitorSUITE
19   extends TestSuite
20 {
21   /**
22    * The maximum wait for a notification
23    */

24   public static final long MAX_WAIT = 1000;
25
26   /**
27    * The time between notifications
28    */

29
30   public static final long GRANULARITY_TIME = 1;
31
32   /**
33    * Run the tests
34    *
35    * @param args the arguments for the test
36    */

37   public static void main(String[] args)
38   {
39     junit.textui.TestRunner.run(suite());
40   }
41
42   /**
43    * Get a list of tests.
44    *
45    * @return the tests
46    */

47   public static Test suite()
48   {
49     TestSuite suite = new TestSuite("Monitor Service Tests");
50
51     suite.addTest(new TestSuite(MonitorTestCase.class));
52
53     return suite;
54   }
55 }
56
Popular Tags