KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > TestTemplate


1
2 import junit.framework.Test;
3 import junit.framework.TestCase;
4 import junit.framework.TestSuite;
5
6 public class TestTemplate extends TestCase {
7    
8   // Variables, inner classes used by tests
9

10   public TestTemplate(String JavaDoc name) {
11     super(name);
12   }
13    
14   public static Test suite() {
15     return new TestSuite(TestTemplate.class);
16   }
17    
18   protected void setUp() {
19     /* Code to set up a fresh scaffold for each test */
20   }
21    
22   protected void tearDown() {
23     /* Code to destroy the scaffold after each test */
24   }
25    
26   public void testSomething() {
27     /* do something and assert success */
28   }
29    
30   // other test methods
31

32 }
33
Popular Tags