01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: **/package org.araneaframework.perftests;
16:
17: import junit.framework.Test;
18: import junit.framework.TestSuite;
19:
20: /**
21: * @author "Toomas Römer" <toomas@webmedia.ee>
22: *
23: */
24: public class TimedSmokeTests {
25: public static final long toleranceInMillis = 100;
26:
27: public static Test suite() throws Exception {
28: //TestSuite suite = new TestSuite();
29: /*
30: SmokeTests testCase = new SmokeTests("testSmoke");
31: testCase.initAdapter("smokeTest.xml");
32: Test timedTest = new TimedTest(testCase, 1000 + toleranceInMillis);
33: suite.addTest(timedTest);
34:
35: testCase = new SmokeTests("testSerialization");
36: testCase.initAdapter("serializationTestsConf.xml");
37: timedTest = new TimedTest(testCase, 1000 + toleranceInMillis);
38: suite.addTest(timedTest);
39:
40: testCase = new SmokeTests("testDestroyPropagates");
41: testCase.initAdapter("repeatedRequest.xml");
42: timedTest = new TimedTest(testCase, 1000 + toleranceInMillis);
43: suite.addTest(timedTest);
44:
45: testCase = new SmokeTests("testRequestRoutingNonComposite");
46: testCase.initAdapter("repeatedRequest.xml");
47: timedTest = new TimedTest(testCase, 1000 + toleranceInMillis);
48: suite.addTest(timedTest);
49:
50: testCase = new SmokeTests("testRequestRoutingComposite");
51: testCase.initAdapter("repeatedRequest.xml");
52: timedTest = new TimedTest(testCase, 1000 + toleranceInMillis);
53: suite.addTest(timedTest);
54: */
55: //return suite;
56: return new TestSuite();
57: }
58:
59: public static void main(String args[]) throws Exception {
60: //junit.textui.TestRunner.run(suite());
61: }
62: }
|