01: package com.clarkware.junitperf;
02:
03: import junit.framework.Test;
04: import junit.framework.TestCase;
05: import junit.framework.TestSuite;
06:
07: /**
08: * The <code>ExampleTestCase</code> is an example
09: * stateless <code>TestCase</code>.
10: *
11: * @author <b>Mike Clark</b>
12: * @author Clarkware Consulting, Inc.
13: */
14:
15: public class ExampleTestCase extends TestCase {
16:
17: public ExampleTestCase(String name) {
18: super (name);
19: }
20:
21: protected void setUp() {
22: }
23:
24: protected void tearDown() {
25: }
26:
27: public void testOneSecondResponse() throws Exception {
28: Thread.sleep(1000);
29: }
30:
31: public static Test suite() {
32: return new TestSuite(ExampleTestCase.class);
33: }
34:
35: public static void main(String args[]) {
36: junit.textui.TestRunner.run(suite());
37: }
38: }
|