01: package com.sun.portal.rewriter.test.suites;
02:
03: import com.clarkware.junitperf.ConstantTimer;
04: import com.clarkware.junitperf.LoadTest;
05: import com.clarkware.junitperf.Timer;
06: import com.sun.portal.rewriter.test.TestRewriterSuite;
07: import com.sun.portal.rewriter.test.util.BasicTestCase;
08: import junit.extensions.RepeatedTest;
09: import junit.framework.Test;
10: import junit.framework.TestSuite;
11:
12: public class TestRewriterPerfSuite {
13: public static Test suite() {
14: int users = 10;
15: int iterations = 2;
16: Timer timer = new ConstantTimer(1000);
17: Test repeatedTest = new RepeatedTest(TestRewriterSuite.suite(),
18: iterations);
19: Test loadTest = new LoadTest(repeatedTest, users, timer);
20:
21: TestSuite allTestSuite = new TestSuite();
22: allTestSuite.addTest(loadTest);
23: return allTestSuite;
24: }//suite()
25:
26: public static void main(String[] args) throws Exception {
27: BasicTestCase.run(suite());
28: }//main()
29: }//class TestRewriterSuite
|