KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > AllTests


1 package org.apache.ojb.broker;
2
3 import junit.framework.Test;
4 import junit.framework.TestSuite;
5 import org.apache.ojb.broker.cache.LocalCacheTest;
6 import org.apache.ojb.broker.cache.ObjectCacheTest;
7 import org.apache.ojb.broker.locking.LockTestCommitedReads;
8 import org.apache.ojb.broker.locking.LockTestRepeatableReads;
9 import org.apache.ojb.broker.locking.LockTestSerializable;
10 import org.apache.ojb.broker.locking.LockTestUncommitedReads;
11 import org.apache.ojb.broker.locking.CommonsLockTestSerializable;
12 import org.apache.ojb.broker.locking.CommonsLockTestRepeatableReads;
13 import org.apache.ojb.broker.locking.CommonsLockTestCommittedReads;
14 import org.apache.ojb.broker.locking.CommonsLockTestUncommittedReads;
15 import org.apache.ojb.broker.metadata.CustomAttributesTest;
16 import org.apache.ojb.broker.metadata.MetadataMultithreadedTest;
17 import org.apache.ojb.broker.metadata.MetadataTest;
18 import org.apache.ojb.broker.metadata.PersistentFieldTest;
19 import org.apache.ojb.broker.metadata.ReadonlyTest;
20 import org.apache.ojb.broker.metadata.RepositoryElementsTest;
21 import org.apache.ojb.broker.metadata.RepositoryPersistorTest;
22 import org.apache.ojb.broker.sequence.AutoIncrementTest;
23 import org.apache.ojb.broker.sequence.NativeIdentifierTest;
24 import org.apache.ojb.broker.sequence.SMMultiThreadedTest;
25 import org.apache.ojb.broker.sequence.SequenceManagerTest;
26
27 /**
28  * the facade to all TestCases in this package.
29  *
30  * @author Thomas Mahler
31  * @version $Id: AllTests.java,v 1.49.2.8 2005/11/15 14:40:22 arminw Exp $
32  */

33 public class AllTests extends junit.framework.TestSuite
34 {
35     /**
36      * runs the suite in a junit.textui.TestRunner.
37      */

38     public static void main(String JavaDoc[] args)
39     {
40         String JavaDoc[] arr = {AllTests.class.getName()};
41         junit.textui.TestRunner.main(arr);
42     }
43
44     /** build a TestSuite from all the TestCases in this package*/
45     public static Test suite()
46     {
47         TestSuite suite = new TestSuite();
48         suite.addTestSuite(QueryTest.class);
49         suite.addTestSuite(EmptyTableTest.class);
50         suite.addTestSuite(PersistenceBrokerTest.class);
51         suite.addTestSuite(BrokerExamples.class);
52         suite.addTestSuite(ProxyExamples.class);
53         suite.addTestSuite(PolymorphicExtents.class);
54         suite.addTestSuite(TreeTest.class);
55         suite.addTestSuite(TypedCollectionsTest.class);
56         suite.addTestSuite(AutomaticForeignKeys.class);
57         suite.addTestSuite(OptimisticLockingTest.class);
58         suite.addTestSuite(GraphTest.class);
59         suite.addTestSuite(PBListenerTest.class);
60         suite.addTestSuite(ContractVersionEffectivenessTest.class);
61         suite.addTestSuite(ComplexMultiMappedTableTest.class);
62         suite.addTestSuite(ComplexMultiMappedTableWithCollectionByQueryTest.class);
63         suite.addTestSuite(CollectionTest.class);
64         suite.addTestSuite(BidirectionalAssociationTest.class);
65         suite.addTestSuite(AutoIncrementWithRelatedObjectTest.class);
66         suite.addTestSuite(OneToManyTest.class);
67         suite.addTestSuite(PBRollbackTest.class);
68         suite.addTestSuite(TransactionDemarcationTest.class);
69         suite.addTestSuite(MultipleDBTest.class);
70         suite.addTestSuite(RepositoryPersistorTest.class);
71         suite.addTestSuite(CustomAttributesTest.class);
72         suite.addTestSuite(SequenceManagerTest.class);
73         suite.addTestSuite(SMMultiThreadedTest.class);
74         suite.addTestSuite(KeyConstraintViolationTest.class);
75         suite.addTestSuite(RsIteratorTest.class);
76         suite.addTestSuite(BlobTest.class);
77         suite.addTestSuite(CharacterTest.class);
78         suite.addTestSuite(LogServiceTest.class);
79         suite.addTestSuite(MetaDataSerializationTest.class);
80         suite.addTestSuite(MetadataTest.class);
81         suite.addTestSuite(MetadataMultithreadedTest.class);
82         suite.addTestSuite(FieldConversionTest.class);
83         suite.addTestSuite(FieldConversionTest_2.class);
84         suite.addTestSuite(FieldConversionTest_3.class);
85         suite.addTestSuite(FieldTypeTest.class);
86         suite.addTestSuite(BatchModeTest.class);
87         suite.addTestSuite(ObjectCacheTest.class);
88         suite.addTestSuite(LocalCacheTest.class);
89         suite.addTestSuite(ReferenceTest.class);
90         suite.addTestSuite(ComplexReferenceTest.class);
91         suite.addTestSuite(ExtentAwarePathExpressionsTest.class);
92         suite.addTestSuite(MultipleTableExtentAwareQueryTest.class);
93         suite.addTestSuite(RepositoryElementsTest.class);
94         suite.addTestSuite(ConnectionFactoryTest.class);
95         suite.addTestSuite(NativeIdentifierTest.class);
96         suite.addTestSuite(AnonymousFieldsTest.class);
97         suite.addTestSuite(AbstractExtentClassTest.class);
98         suite.addTestSuite(NestedFieldsTest.class);
99         suite.addTestSuite(ReadonlyTest.class);
100         // arminw: this test doesn't pass without failure on all machines
101
// because the behavior of the JVM gc is not predetermined.
102
// suite.addTestSuite(ReferenceMapTest.class);
103
suite.addTestSuite(MultithreadedReadTest.class);
104         suite.addTestSuite(CollectionTest2.class);
105         suite.addTestSuite(NumberAccuracyTest.class);
106         suite.addTestSuite(AutoIncrementTest.class);
107         suite.addTestSuite(PathTest.class);
108         suite.addTestSuite(PrimaryKeyForeignKeyTest.class);
109         suite.addTestSuite(PersistentFieldTest.class);
110         suite.addTestSuite(InheritanceMultipleTableTest.class);
111         suite.addTestSuite(M2NGraphTest.class);
112         suite.addTestSuite(MtoNMapping.class);
113         suite.addTestSuite(MtoNTest.class);
114         suite.addTestSuite(M2NTest.class);
115         suite.addTestSuite(LockTestSerializable.class);
116         suite.addTestSuite(LockTestRepeatableReads.class);
117         suite.addTestSuite(LockTestCommitedReads.class);
118         suite.addTestSuite(LockTestUncommitedReads.class);
119         suite.addTestSuite(CommonsLockTestSerializable.class);
120         suite.addTestSuite(CommonsLockTestRepeatableReads.class);
121         suite.addTestSuite(CommonsLockTestCommittedReads.class);
122         suite.addTestSuite(CommonsLockTestUncommittedReads.class);
123         suite.addTestSuite(OptimisticLockingMultithreadedTest.class);
124
125         // BRJ: ensure shutdown of hsqldb
126
suite.addTestSuite(HsqldbShutdown.class);
127         return suite;
128     }
129
130 }
131
Popular Tags