001: package xdoclet.modules.ojb.tests;
002:
003: /* Copyright 2003-2005 The Apache Software Foundation
004: *
005: * Licensed under the Apache License, Version 2.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: import junit.framework.Test;
019: import junit.framework.TestCase;
020: import junit.framework.TestSuite;
021:
022: /**
023: * Test runner for the XDoclet OJB module tests.
024: * Note: You should not run this class but rather the junit target in the ANT build file
025: * as there is a memory leak somewhere in the combination ant+xdoclet which results
026: * in an out-of-memory error when the tests are run after another within the same vm.
027: * This class rather serves as a helper to run specific tests (by commenting the other ones).
028: *
029: * @author <a href="mailto:tomdz@users.sourceforge.net">Thomas Dudziak (tomdz@users.sourceforge.net)</a>
030: */
031: public class RunAllTests extends TestCase {
032:
033: public RunAllTests(String name) {
034: super (name);
035: }
036:
037: public static void main(String[] args) {
038: junit.textui.TestRunner.run(suite());
039: }
040:
041: public static Test suite() {
042: TestSuite suite = new TestSuite("XDoclet OJB module tests");
043: /*
044: suite.addTest(new TestSuite(ClassTagSimpleTests.class));
045: suite.addTest(new TestSuite(ClassTagAcceptLocksAttributeTests.class));
046: suite.addTest(new TestSuite(ClassTagAttributesAttributeTests.class));
047: suite.addTest(new TestSuite(ClassTagDetermineExtendsAttributeTests.class));
048: suite.addTest(new TestSuite(ClassTagDocumentationAttributeTests.class));
049: suite.addTest(new TestSuite(ClassTagFactoryClassAndMethodAttributeTests.class));
050: suite.addTest(new TestSuite(ClassTagGenerateRepositoryInfoAttributeTests.class));
051: suite.addTest(new TestSuite(ClassTagGenerateTableInfoAttributeTests.class));
052: suite.addTest(new TestSuite(ClassTagIncludeInheritedAttributeTests.class));
053: suite.addTest(new TestSuite(ClassTagInitializationMethodAttributeTests.class));
054: suite.addTest(new TestSuite(ClassTagIsolationLevelAttributeTests.class));
055: suite.addTest(new TestSuite(ClassTagProxyAttributeTests.class));
056: suite.addTest(new TestSuite(ClassTagRefreshAttributeTests.class));
057: suite.addTest(new TestSuite(ClassTagRowReaderAttributeTests.class));
058: suite.addTest(new TestSuite(ClassTagTableAttributeTests.class));
059: suite.addTest(new TestSuite(ClassTagTableDocumentationAttributeTests.class));
060: suite.addTest(new TestSuite(ExtentClassTagTests.class));
061: suite.addTest(new TestSuite(ObjectCacheTagTests.class));
062: suite.addTest(new TestSuite(IndexTagTests.class));
063: suite.addTest(new TestSuite(FieldTagSimpleTests.class));
064: suite.addTest(new TestSuite(FieldTagAccessAttributeTests.class));
065: suite.addTest(new TestSuite(FieldTagAttributesAttributeTests.class));
066: suite.addTest(new TestSuite(FieldTagAutoincrementAttributeTests.class));
067: suite.addTest(new TestSuite(FieldTagColumnAttributeTests.class));
068: suite.addTest(new TestSuite(FieldTagColumnDocumentationAttributeTests.class));
069: suite.addTest(new TestSuite(FieldTagDocumentationAttributeTests.class));
070: suite.addTest(new TestSuite(FieldTagConversionAttributeTests.class));
071: suite.addTest(new TestSuite(FieldTagDefaultFetchAttributeTests.class));
072: suite.addTest(new TestSuite(FieldTagIdAttributeTests.class));
073: suite.addTest(new TestSuite(FieldTagIndexedAttributeTests.class));
074: suite.addTest(new TestSuite(FieldTagJdbcTypeAttributeTests.class));
075: suite.addTest(new TestSuite(FieldTagLengthAttributeTests.class));
076: suite.addTest(new TestSuite(FieldTagLockingAttributeTests.class));
077: suite.addTest(new TestSuite(FieldTagNameAttributeTests.class));
078: suite.addTest(new TestSuite(FieldTagNullableAttributeTests.class));
079: suite.addTest(new TestSuite(FieldTagPrecisionAndScaleAttributesTests.class));
080: suite.addTest(new TestSuite(FieldTagPrimarykeyAttributeTests.class));
081: suite.addTest(new TestSuite(FieldTagSequenceNameAttributeTests.class));
082: suite.addTest(new TestSuite(FieldTagUpdateLockAttributeTests.class));
083: suite.addTest(new TestSuite(AnonymousFieldTagTests.class));
084: suite.addTest(new TestSuite(ReferenceTagAttributesAttributeTests.class));
085: suite.addTest(new TestSuite(ReferenceTagAutoDeleteAttributeTests.class));
086: suite.addTest(new TestSuite(ReferenceTagAutoRetrieveAttributeTests.class));
087: suite.addTest(new TestSuite(ReferenceTagAutoUpdateAttributeTests.class));
088: suite.addTest(new TestSuite(ReferenceTagClassRefAttributeTests.class));
089: suite.addTest(new TestSuite(ReferenceTagDatabaseForeignkeyAttributeTests.class));
090: suite.addTest(new TestSuite(ReferenceTagDocumentationAttributeTests.class));
091: suite.addTest(new TestSuite(ReferenceTagForeignkeyAttributeTests.class));
092: suite.addTest(new TestSuite(ReferenceTagOtmDependentAttributeTests.class));
093: suite.addTest(new TestSuite(ReferenceTagProxyAttributeTests.class));
094: suite.addTest(new TestSuite(ReferenceTagRefreshAttributeTests.class));
095: suite.addTest(new TestSuite(AnonymousReferenceTagTests.class));
096: suite.addTest(new TestSuite(CollectionTagSimpleTests.class));
097: suite.addTest(new TestSuite(CollectionTagAttributesAttributeTests.class));
098: suite.addTest(new TestSuite(CollectionTagAutoDeleteAttributeTests.class));
099: suite.addTest(new TestSuite(CollectionTagAutoRetrieveAttributeTests.class));
100: suite.addTest(new TestSuite(CollectionTagAutoUpdateAttributeTests.class));
101: suite.addTest(new TestSuite(CollectionTagCollectionClassAttributeTests.class));
102: suite.addTest(new TestSuite(CollectionTagDocumentationAttributeTests.class));
103: suite.addTest(new TestSuite(CollectionTagElementClassRefAttributeTests.class));
104: suite.addTest(new TestSuite(CollectionTagForeignkeyAttributeTests.class));
105: suite.addTest(new TestSuite(CollectionTagIndirectionTableAttributeTests.class));
106: suite.addTest(new TestSuite(CollectionTagIndirectionTableDocumentationAttributesTests.class));
107: suite.addTest(new TestSuite(CollectionTagIndirectionTablePrimarykeysAttributeTests.class));
108: suite.addTest(new TestSuite(CollectionTagOrderbyAttributeTests.class));
109: suite.addTest(new TestSuite(CollectionTagOtmDependentAttributeTests.class));
110: suite.addTest(new TestSuite(CollectionTagProxyAttributeTests.class));
111: suite.addTest(new TestSuite(CollectionTagQueryCustomizerAttributeTests.class));
112: suite.addTest(new TestSuite(CollectionTagRefreshAttributeTests.class));
113: suite.addTest(new TestSuite(ModifyInheritedTagSimpleTests.class));
114: suite.addTest(new TestSuite(ModifyInheritedTagAccessAttributeTests.class));
115: suite.addTest(new TestSuite(ModifyInheritedTagAttributesAttributeTests.class));
116: suite.addTest(new TestSuite(ModifyInheritedTagAutoDeleteAttributeTests.class));
117: suite.addTest(new TestSuite(ModifyInheritedTagAutoIncrementAttributeTests.class));
118: suite.addTest(new TestSuite(ModifyInheritedTagAutoRetrieveAttributeTests.class));
119: suite.addTest(new TestSuite(ModifyInheritedTagAutoUpdateAttributeTests.class));
120: suite.addTest(new TestSuite(ModifyInheritedTagClassRefAttributeTests.class));
121: suite.addTest(new TestSuite(ModifyInheritedTagCollectionClassAttributeTests.class));
122: suite.addTest(new TestSuite(ModifyInheritedTagColumnAttributeTests.class));
123: suite.addTest(new TestSuite(ModifyInheritedTagColumnDocumentationAttributeTests.class));
124: suite.addTest(new TestSuite(ModifyInheritedTagConversionAttributeTests.class));
125: suite.addTest(new TestSuite(ModifyInheritedTagDatabaseForeignkeyAttributeTests.class));
126: suite.addTest(new TestSuite(ModifyInheritedTagDefaultFetchAttributeTests.class));
127: suite.addTest(new TestSuite(ModifyInheritedTagDocumentationAttributeTests.class));
128: suite.addTest(new TestSuite(ModifyInheritedTagElementClassRefAttributeTests.class));
129: suite.addTest(new TestSuite(ModifyInheritedTagForeignkeyAttributeTests.class));
130: suite.addTest(new TestSuite(ModifyInheritedTagIdAttributeTests.class));
131: suite.addTest(new TestSuite(ModifyInheritedTagIgnoreAttributeTests.class));
132: suite.addTest(new TestSuite(ModifyInheritedTagJdbcTypeAttributeTests.class));
133: suite.addTest(new TestSuite(ModifyInheritedTagLengthAttributeTests.class));
134: suite.addTest(new TestSuite(ModifyInheritedTagLockingAttributeTests.class));
135: suite.addTest(new TestSuite(ModifyInheritedTagNullableAttributeTests.class));
136: suite.addTest(new TestSuite(ModifyInheritedTagOrderbyAttributeTests.class));
137: suite.addTest(new TestSuite(ModifyInheritedTagOtmDependentAttributeTests.class));
138: suite.addTest(new TestSuite(ModifyInheritedTagPrecisionAndScaleAttributesTests.class));
139: suite.addTest(new TestSuite(ModifyInheritedTagPrimarykeyAttributeTests.class));
140: suite.addTest(new TestSuite(ModifyInheritedTagProxyAttributeTests.class));
141: suite.addTest(new TestSuite(ModifyInheritedTagQueryCustomizerAttributeTests.class));
142: suite.addTest(new TestSuite(ModifyInheritedTagRefreshAttributeTests.class));
143: suite.addTest(new TestSuite(ModifyInheritedTagSequenceNameAttributeTests.class));
144: suite.addTest(new TestSuite(ModifyInheritedTagUpdateLockAttributeTests.class));
145: suite.addTest(new TestSuite(NestedTagSimpleTests.class));
146: suite.addTest(new TestSuite(ModifyNestedTagSimpleTests.class));
147: suite.addTest(new TestSuite(DeleteProcedureTagTests.class));
148: suite.addTest(new TestSuite(InsertProcedureTagTests.class));
149: suite.addTest(new TestSuite(UpdateProcedureTagTests.class));
150: suite.addTest(new TestSuite(ProcedureArgumentTagTests.class));
151: */
152:
153: return suite;
154: }
155: }
|