5
import junit.framework.Test;
6
import junit.framework.TestCase;
7
import junit.framework.TestSuite;
10
* The <code>ExampleTestCase</code> is an example
11
* stateless <code>TestCase</code>.
13
* @author <a href="mailto:mike@clarkware.com">Mike Clark</a>
14
* @author <a href="http://www.clarkware.com">Clarkware Consulting, Inc.</a>
16
* @see junit.framework.TestCase
19
public class ExampleTestCase extends TestCase {
22
* Constructs an <code>ExampleTestCase</code>
23
* with the specified name.
25
* @param name Test name.
27
public ExampleTestCase(String name) {
32
* Sets up the test fixture.
34
protected void setUp() {
38
* Tears down the test fixture.
40
protected void tearDown() {
43
public void testOneSecondResponse() throws Exception {
48
* Assembles and returns a test suite for all
49
* the test methods of this class.
51
* @return A non-null <code>Test</code> instance.
53
public static Test suite() {
54
TestSuite suite = new TestSuite(ExampleTestCase.class);
61
public static void main(String args[]) {
62
junit.textui.TestRunner.run(suite());