01: /*
02: * MCS Media Computer Software Copyright (c) 2005 by MCS
03: * -------------------------------------- Created on 23.04.2005 by w.klaas
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
06: * use this file except in compliance with the License. You may obtain a copy of
07: * the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations under
15: * the License.
16: */
17: package de.mcs.jmeasurement.test;
18:
19: import junit.framework.Test;
20: import junit.framework.TestSuite;
21: import de.mcs.jmeasurement.test.proxy.ProxyTest;
22:
23: /**
24: * This class providing an test suite for all implemented tests.
25: *
26: * @author w.klaas
27: */
28: public final class AllTests {
29:
30: /** prevent instancing. */
31: private AllTests() {
32: }
33:
34: /**
35: * starting all tests from commandline.
36: *
37: * @param args
38: * not needed.
39: */
40: public static void main(final String[] args) {
41: junit.textui.TestRunner.run(AllTests.suite());
42: }
43:
44: /**
45: * defining of the test suit.
46: *
47: * @return Test
48: */
49: public static Test suite() {
50: TestSuite suite = new TestSuite("Test for de.mcs.jmeasure");
51: // $JUnit-BEGIN$
52: suite.addTestSuite(NullMonitorTest.class);
53: suite.addTestSuite(DefaultMonitorTest.class);
54: suite.addTestSuite(DefaultMeasurePointTest.class);
55: suite.addTestSuite(MeasureFactoryTest.class);
56: suite.addTestSuite(IncrementTime100Test.class);
57: suite.addTestSuite(UserDataStoreTest.class);
58: suite.addTestSuite(ProxyTest.class);
59: // $JUnit-END$
60: long startTime = System.currentTimeMillis();
61: // (…) zu messender Code
62: System.out
63: .println("Messpunkt 1:"
64: + Long.toString(System.currentTimeMillis()
65: - startTime));
66:
67: return suite;
68: }
69: }
|