001: package org.apache.ojb.broker;
002:
003: import junit.framework.Test;
004: import junit.framework.TestSuite;
005: import org.apache.ojb.broker.cache.LocalCacheTest;
006: import org.apache.ojb.broker.cache.ObjectCacheTest;
007: import org.apache.ojb.broker.locking.LockTestCommitedReads;
008: import org.apache.ojb.broker.locking.LockTestRepeatableReads;
009: import org.apache.ojb.broker.locking.LockTestSerializable;
010: import org.apache.ojb.broker.locking.LockTestUncommitedReads;
011: import org.apache.ojb.broker.locking.CommonsLockTestSerializable;
012: import org.apache.ojb.broker.locking.CommonsLockTestRepeatableReads;
013: import org.apache.ojb.broker.locking.CommonsLockTestCommittedReads;
014: import org.apache.ojb.broker.locking.CommonsLockTestUncommittedReads;
015: import org.apache.ojb.broker.metadata.CustomAttributesTest;
016: import org.apache.ojb.broker.metadata.MetadataMultithreadedTest;
017: import org.apache.ojb.broker.metadata.MetadataTest;
018: import org.apache.ojb.broker.metadata.PersistentFieldTest;
019: import org.apache.ojb.broker.metadata.ReadonlyTest;
020: import org.apache.ojb.broker.metadata.RepositoryElementsTest;
021: import org.apache.ojb.broker.metadata.RepositoryPersistorTest;
022: import org.apache.ojb.broker.sequence.AutoIncrementTest;
023: import org.apache.ojb.broker.sequence.NativeIdentifierTest;
024: import org.apache.ojb.broker.sequence.SMMultiThreadedTest;
025: import org.apache.ojb.broker.sequence.SequenceManagerTest;
026:
027: /**
028: * the facade to all TestCases in this package.
029: *
030: * @author Thomas Mahler
031: * @version $Id: AllTests.java,v 1.49.2.8 2005/11/15 14:40:22 arminw Exp $
032: */
033: public class AllTests extends junit.framework.TestSuite {
034: /**
035: * runs the suite in a junit.textui.TestRunner.
036: */
037: public static void main(String[] args) {
038: String[] arr = { AllTests.class.getName() };
039: junit.textui.TestRunner.main(arr);
040: }
041:
042: /** build a TestSuite from all the TestCases in this package*/
043: public static Test suite() {
044: TestSuite suite = new TestSuite();
045: suite.addTestSuite(QueryTest.class);
046: suite.addTestSuite(EmptyTableTest.class);
047: suite.addTestSuite(PersistenceBrokerTest.class);
048: suite.addTestSuite(BrokerExamples.class);
049: suite.addTestSuite(ProxyExamples.class);
050: suite.addTestSuite(PolymorphicExtents.class);
051: suite.addTestSuite(TreeTest.class);
052: suite.addTestSuite(TypedCollectionsTest.class);
053: suite.addTestSuite(AutomaticForeignKeys.class);
054: suite.addTestSuite(OptimisticLockingTest.class);
055: suite.addTestSuite(GraphTest.class);
056: suite.addTestSuite(PBListenerTest.class);
057: suite.addTestSuite(ContractVersionEffectivenessTest.class);
058: suite.addTestSuite(ComplexMultiMappedTableTest.class);
059: suite
060: .addTestSuite(ComplexMultiMappedTableWithCollectionByQueryTest.class);
061: suite.addTestSuite(CollectionTest.class);
062: suite.addTestSuite(BidirectionalAssociationTest.class);
063: suite.addTestSuite(AutoIncrementWithRelatedObjectTest.class);
064: suite.addTestSuite(OneToManyTest.class);
065: suite.addTestSuite(PBRollbackTest.class);
066: suite.addTestSuite(TransactionDemarcationTest.class);
067: suite.addTestSuite(MultipleDBTest.class);
068: suite.addTestSuite(RepositoryPersistorTest.class);
069: suite.addTestSuite(CustomAttributesTest.class);
070: suite.addTestSuite(SequenceManagerTest.class);
071: suite.addTestSuite(SMMultiThreadedTest.class);
072: suite.addTestSuite(KeyConstraintViolationTest.class);
073: suite.addTestSuite(RsIteratorTest.class);
074: suite.addTestSuite(BlobTest.class);
075: suite.addTestSuite(CharacterTest.class);
076: suite.addTestSuite(LogServiceTest.class);
077: suite.addTestSuite(MetaDataSerializationTest.class);
078: suite.addTestSuite(MetadataTest.class);
079: suite.addTestSuite(MetadataMultithreadedTest.class);
080: suite.addTestSuite(FieldConversionTest.class);
081: suite.addTestSuite(FieldConversionTest_2.class);
082: suite.addTestSuite(FieldConversionTest_3.class);
083: suite.addTestSuite(FieldTypeTest.class);
084: suite.addTestSuite(BatchModeTest.class);
085: suite.addTestSuite(ObjectCacheTest.class);
086: suite.addTestSuite(LocalCacheTest.class);
087: suite.addTestSuite(ReferenceTest.class);
088: suite.addTestSuite(ComplexReferenceTest.class);
089: suite.addTestSuite(ExtentAwarePathExpressionsTest.class);
090: suite.addTestSuite(MultipleTableExtentAwareQueryTest.class);
091: suite.addTestSuite(RepositoryElementsTest.class);
092: suite.addTestSuite(ConnectionFactoryTest.class);
093: suite.addTestSuite(NativeIdentifierTest.class);
094: suite.addTestSuite(AnonymousFieldsTest.class);
095: suite.addTestSuite(AbstractExtentClassTest.class);
096: suite.addTestSuite(NestedFieldsTest.class);
097: suite.addTestSuite(ReadonlyTest.class);
098: // arminw: this test doesn't pass without failure on all machines
099: // because the behavior of the JVM gc is not predetermined.
100: // suite.addTestSuite(ReferenceMapTest.class);
101: suite.addTestSuite(MultithreadedReadTest.class);
102: suite.addTestSuite(CollectionTest2.class);
103: suite.addTestSuite(NumberAccuracyTest.class);
104: suite.addTestSuite(AutoIncrementTest.class);
105: suite.addTestSuite(PathTest.class);
106: suite.addTestSuite(PrimaryKeyForeignKeyTest.class);
107: suite.addTestSuite(PersistentFieldTest.class);
108: suite.addTestSuite(InheritanceMultipleTableTest.class);
109: suite.addTestSuite(M2NGraphTest.class);
110: suite.addTestSuite(MtoNMapping.class);
111: suite.addTestSuite(MtoNTest.class);
112: suite.addTestSuite(M2NTest.class);
113: suite.addTestSuite(LockTestSerializable.class);
114: suite.addTestSuite(LockTestRepeatableReads.class);
115: suite.addTestSuite(LockTestCommitedReads.class);
116: suite.addTestSuite(LockTestUncommitedReads.class);
117: suite.addTestSuite(CommonsLockTestSerializable.class);
118: suite.addTestSuite(CommonsLockTestRepeatableReads.class);
119: suite.addTestSuite(CommonsLockTestCommittedReads.class);
120: suite.addTestSuite(CommonsLockTestUncommittedReads.class);
121: suite.addTestSuite(OptimisticLockingMultithreadedTest.class);
122:
123: // BRJ: ensure shutdown of hsqldb
124: suite.addTestSuite(HsqldbShutdown.class);
125: return suite;
126: }
127:
128: }
|