KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > tivano > junit > JunitSuite


1 /*
2  * JunitSuite.java
3  * JUnit based test
4  *
5  * Created on 3. März 2002, 18:50
6  */

7
8 package de.tivano.junit;
9
10 import junit.framework.Test;
11 import junit.framework.TestCase;
12 import junit.framework.TestSuite;
13
14 /**
15  *
16  * @author richard
17  */

18 public class JunitSuite extends TestCase {
19     
20     public JunitSuite(java.lang.String JavaDoc testName) {
21         super(testName);
22     }
23     
24     public static void main(java.lang.String JavaDoc[] args) {
25         junit.textui.TestRunner.run(suite());
26     }
27     
28     public static Test suite() {
29         //--JUNIT:
30
//This block was automatically generated and can be regenerated again.
31
//Do NOT change lines enclosed by the --JUNIT: and :JUNIT-- tags.
32

33         TestSuite suite = new TestSuite("JunitSuite");
34         suite.addTest(de.tivano.junit.ParametrizedTestSuiteTest.suite());
35         //:JUNIT--
36
//This value MUST ALWAYS be returned from this function.
37
return suite;
38     }
39     
40     // Add test methods here, they have to start with 'test' name.
41
// for example:
42
// public void testHello() {}
43

44     
45 }
46
Popular Tags