KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > timer > TimerSUITE


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.timer;
9
10 import junit.framework.Test;
11 import junit.framework.TestSuite;
12
13 /**
14  * Tests for the timer service.
15  *
16  * @author <a HREF="mailto:AdrianBrock@HappeningTimes.com">Adrian Brock</a>.
17  */

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

24   public static final long MAX_WAIT = 10000;
25
26   /**
27    * The time for a repeated notification
28    */

29   public static final long REPEAT_TIME = 500;
30
31   /**
32    * The immediate registration time, allow for processing
33    */

34   public static final long ZERO_TIME = 100;
35
36   /**
37    * Run the tests
38    *
39    * @param args the arguments for the test
40    */

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

51   public static Test suite()
52   {
53     TestSuite suite = new TestSuite("Timer Service Tests");
54
55     suite.addTest(new TestSuite(TimerNotificationTestCase.class));
56     suite.addTest(new TestSuite(TimerTest.class));
57
58     return suite;
59   }
60 }
61
Popular Tags