01: package org.apache.ojb.odmg;
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: * @author Thomas Mahler
10: */
11: public class AllTests extends junit.framework.TestSuite {
12: /**
13: * runs the suite in a junit.textui.TestRunner.
14: */
15: public static void main(String[] args) {
16: String[] arr = { AllTests.class.getName() };
17: junit.textui.TestRunner.main(arr);
18: }
19:
20: /** build a TestSuite from all the TestCases in this package*/
21: public static Test suite() {
22: TestSuite suite = new TestSuite();
23: suite.addTestSuite(OdmgExamples.class);
24: suite.addTestSuite(NamedRootsTest.class);
25: suite.addTestSuite(DListTest.class);
26: suite.addTestSuite(DMapTest.class);
27: suite.addTestSuite(DSetTest.class);
28: suite.addTestSuite(LockingTest.class);
29: suite.addTestSuite(LockingMultithreadedTest.class);
30: suite.addTestSuite(ProxyTest.class);
31: suite.addTestSuite(RITest.class);
32: suite.addTestSuite(ScrollableQueryResultsTest.class);
33: suite.addTestSuite(ProjectionAttributeTest.class);
34: suite.addTestSuite(ContractVersionEffectivenessOQLTest.class);
35: suite.addTestSuite(OQLTest.class);
36: suite.addTestSuite(ODMGRollbackTest.class);
37: suite.addTestSuite(MultiDBUsageTest.class);
38: suite.addTestSuite(UserTestCases.class);
39: suite.addTestSuite(BidirectionalAssociationTest.class);
40: suite.addTestSuite(ManyToManyTest.class);
41: suite.addTestSuite(OneToOneTest.class);
42: suite.addTestSuite(OneToManyTest.class);
43: suite.addTestSuite(OQLOrOnForeignKeyTest.class);
44: suite.addTestSuite(FieldConversionTest_4.class);
45: suite.addTestSuite(BatchModeTest.class);
46: suite.addTestSuite(CollectionsTest.class);
47: suite.addTestSuite(PersonWithArrayTest.class);
48: suite.addTestSuite(M2NTest.class);
49: suite.addTestSuite(ObjectImageTest.class);
50: suite.addTestSuite(InheritanceMultipleTableTest.class);
51: suite.addTestSuite(CircularTest.class);
52:
53: // BRJ: ensure shutdown of hsqldb
54: suite.addTestSuite(HsqldbShutdown.class);
55: return suite;
56: }
57: }
|