01: package org.apache.ojb.otm;
02:
03: import junit.framework.Test;
04: import junit.framework.TestSuite;
05: import org.apache.ojb.broker.HsqldbShutdown;
06:
07: /**
08: * the facade to all TestCases in this package.
09: *
10: * @author Thomas Mahler
11: */
12: public class AllTests extends junit.framework.TestSuite {
13: /** static reference to .class.
14: * Java does not provide any way to obtain the Class object from
15: * static method without naming it.
16: */
17: private static Class CLASS = AllTests.class;
18:
19: /**
20: * runs the suite in a junit.textui.TestRunner.
21: */
22: public static void main(String[] args) {
23: String[] arr = { CLASS.getName() };
24: junit.textui.TestRunner.main(arr);
25: }
26:
27: /** build a TestSuite from all the TestCases in this package*/
28: public static Test suite() {
29: TestSuite suite = new TestSuite();
30: suite.addTest(new TestSuite(OtmExamples.class));
31: suite.addTest(new TestSuite(LockTestUncommittedReads.class));
32: suite.addTest(new TestSuite(LockTestCommittedReads.class));
33: suite.addTest(new TestSuite(LockTestRepeatableReads.class));
34: suite.addTest(new TestSuite(LockTestSerializable.class));
35: suite.addTest(new TestSuite(SwizzleTests.class));
36: suite.addTest(new TestSuite(CopyTest.class));
37: suite.addTest(new TestSuite(DependentTests.class));
38:
39: // BRJ: ensure shutdown of hsqldb
40: suite.addTestSuite(HsqldbShutdown.class);
41: return suite;
42: }
43:
44: }
|