KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > ojb > tests > RunAllTests


1 package xdoclet.modules.ojb.tests;
2
3 /* Copyright 2003-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 import junit.framework.Test;
19 import junit.framework.TestCase;
20 import junit.framework.TestSuite;
21
22 /**
23  * Test runner for the XDoclet OJB module tests.
24  * Note: You should not run this class but rather the junit target in the ANT build file
25  * as there is a memory leak somewhere in the combination ant+xdoclet which results
26  * in an out-of-memory error when the tests are run after another within the same vm.
27  * This class rather serves as a helper to run specific tests (by commenting the other ones).
28  *
29  * @author <a HREF="mailto:tomdz@users.sourceforge.net">Thomas Dudziak (tomdz@users.sourceforge.net)</a>
30  */

31 public class RunAllTests extends TestCase
32 {
33
34     public RunAllTests(String JavaDoc name)
35     {
36         super(name);
37     }
38
39     public static void main(String JavaDoc[] args)
40     {
41         junit.textui.TestRunner.run(suite());
42     }
43
44     public static Test suite()
45     {
46         TestSuite suite = new TestSuite("XDoclet OJB module tests");
47 /*
48         suite.addTest(new TestSuite(ClassTagSimpleTests.class));
49         suite.addTest(new TestSuite(ClassTagAcceptLocksAttributeTests.class));
50         suite.addTest(new TestSuite(ClassTagAttributesAttributeTests.class));
51         suite.addTest(new TestSuite(ClassTagDetermineExtendsAttributeTests.class));
52         suite.addTest(new TestSuite(ClassTagDocumentationAttributeTests.class));
53         suite.addTest(new TestSuite(ClassTagFactoryClassAndMethodAttributeTests.class));
54         suite.addTest(new TestSuite(ClassTagGenerateRepositoryInfoAttributeTests.class));
55         suite.addTest(new TestSuite(ClassTagGenerateTableInfoAttributeTests.class));
56         suite.addTest(new TestSuite(ClassTagIncludeInheritedAttributeTests.class));
57         suite.addTest(new TestSuite(ClassTagInitializationMethodAttributeTests.class));
58         suite.addTest(new TestSuite(ClassTagIsolationLevelAttributeTests.class));
59         suite.addTest(new TestSuite(ClassTagProxyAttributeTests.class));
60         suite.addTest(new TestSuite(ClassTagRefreshAttributeTests.class));
61         suite.addTest(new TestSuite(ClassTagRowReaderAttributeTests.class));
62         suite.addTest(new TestSuite(ClassTagTableAttributeTests.class));
63         suite.addTest(new TestSuite(ClassTagTableDocumentationAttributeTests.class));
64         suite.addTest(new TestSuite(ExtentClassTagTests.class));
65         suite.addTest(new TestSuite(ObjectCacheTagTests.class));
66         suite.addTest(new TestSuite(IndexTagTests.class));
67         suite.addTest(new TestSuite(FieldTagSimpleTests.class));
68         suite.addTest(new TestSuite(FieldTagAccessAttributeTests.class));
69         suite.addTest(new TestSuite(FieldTagAttributesAttributeTests.class));
70         suite.addTest(new TestSuite(FieldTagAutoincrementAttributeTests.class));
71         suite.addTest(new TestSuite(FieldTagColumnAttributeTests.class));
72         suite.addTest(new TestSuite(FieldTagColumnDocumentationAttributeTests.class));
73         suite.addTest(new TestSuite(FieldTagDocumentationAttributeTests.class));
74         suite.addTest(new TestSuite(FieldTagConversionAttributeTests.class));
75         suite.addTest(new TestSuite(FieldTagDefaultFetchAttributeTests.class));
76         suite.addTest(new TestSuite(FieldTagIdAttributeTests.class));
77         suite.addTest(new TestSuite(FieldTagIndexedAttributeTests.class));
78         suite.addTest(new TestSuite(FieldTagJdbcTypeAttributeTests.class));
79         suite.addTest(new TestSuite(FieldTagLengthAttributeTests.class));
80         suite.addTest(new TestSuite(FieldTagLockingAttributeTests.class));
81         suite.addTest(new TestSuite(FieldTagNameAttributeTests.class));
82         suite.addTest(new TestSuite(FieldTagNullableAttributeTests.class));
83         suite.addTest(new TestSuite(FieldTagPrecisionAndScaleAttributesTests.class));
84         suite.addTest(new TestSuite(FieldTagPrimarykeyAttributeTests.class));
85         suite.addTest(new TestSuite(FieldTagSequenceNameAttributeTests.class));
86         suite.addTest(new TestSuite(FieldTagUpdateLockAttributeTests.class));
87         suite.addTest(new TestSuite(AnonymousFieldTagTests.class));
88         suite.addTest(new TestSuite(ReferenceTagAttributesAttributeTests.class));
89         suite.addTest(new TestSuite(ReferenceTagAutoDeleteAttributeTests.class));
90         suite.addTest(new TestSuite(ReferenceTagAutoRetrieveAttributeTests.class));
91         suite.addTest(new TestSuite(ReferenceTagAutoUpdateAttributeTests.class));
92         suite.addTest(new TestSuite(ReferenceTagClassRefAttributeTests.class));
93         suite.addTest(new TestSuite(ReferenceTagDatabaseForeignkeyAttributeTests.class));
94         suite.addTest(new TestSuite(ReferenceTagDocumentationAttributeTests.class));
95         suite.addTest(new TestSuite(ReferenceTagForeignkeyAttributeTests.class));
96         suite.addTest(new TestSuite(ReferenceTagOtmDependentAttributeTests.class));
97         suite.addTest(new TestSuite(ReferenceTagProxyAttributeTests.class));
98         suite.addTest(new TestSuite(ReferenceTagRefreshAttributeTests.class));
99         suite.addTest(new TestSuite(AnonymousReferenceTagTests.class));
100         suite.addTest(new TestSuite(CollectionTagSimpleTests.class));
101         suite.addTest(new TestSuite(CollectionTagAttributesAttributeTests.class));
102         suite.addTest(new TestSuite(CollectionTagAutoDeleteAttributeTests.class));
103         suite.addTest(new TestSuite(CollectionTagAutoRetrieveAttributeTests.class));
104         suite.addTest(new TestSuite(CollectionTagAutoUpdateAttributeTests.class));
105         suite.addTest(new TestSuite(CollectionTagCollectionClassAttributeTests.class));
106         suite.addTest(new TestSuite(CollectionTagDocumentationAttributeTests.class));
107         suite.addTest(new TestSuite(CollectionTagElementClassRefAttributeTests.class));
108         suite.addTest(new TestSuite(CollectionTagForeignkeyAttributeTests.class));
109         suite.addTest(new TestSuite(CollectionTagIndirectionTableAttributeTests.class));
110         suite.addTest(new TestSuite(CollectionTagIndirectionTableDocumentationAttributesTests.class));
111         suite.addTest(new TestSuite(CollectionTagIndirectionTablePrimarykeysAttributeTests.class));
112         suite.addTest(new TestSuite(CollectionTagOrderbyAttributeTests.class));
113         suite.addTest(new TestSuite(CollectionTagOtmDependentAttributeTests.class));
114         suite.addTest(new TestSuite(CollectionTagProxyAttributeTests.class));
115         suite.addTest(new TestSuite(CollectionTagQueryCustomizerAttributeTests.class));
116         suite.addTest(new TestSuite(CollectionTagRefreshAttributeTests.class));
117         suite.addTest(new TestSuite(ModifyInheritedTagSimpleTests.class));
118         suite.addTest(new TestSuite(ModifyInheritedTagAccessAttributeTests.class));
119         suite.addTest(new TestSuite(ModifyInheritedTagAttributesAttributeTests.class));
120         suite.addTest(new TestSuite(ModifyInheritedTagAutoDeleteAttributeTests.class));
121         suite.addTest(new TestSuite(ModifyInheritedTagAutoIncrementAttributeTests.class));
122         suite.addTest(new TestSuite(ModifyInheritedTagAutoRetrieveAttributeTests.class));
123         suite.addTest(new TestSuite(ModifyInheritedTagAutoUpdateAttributeTests.class));
124         suite.addTest(new TestSuite(ModifyInheritedTagClassRefAttributeTests.class));
125         suite.addTest(new TestSuite(ModifyInheritedTagCollectionClassAttributeTests.class));
126         suite.addTest(new TestSuite(ModifyInheritedTagColumnAttributeTests.class));
127         suite.addTest(new TestSuite(ModifyInheritedTagColumnDocumentationAttributeTests.class));
128         suite.addTest(new TestSuite(ModifyInheritedTagConversionAttributeTests.class));
129         suite.addTest(new TestSuite(ModifyInheritedTagDatabaseForeignkeyAttributeTests.class));
130         suite.addTest(new TestSuite(ModifyInheritedTagDefaultFetchAttributeTests.class));
131         suite.addTest(new TestSuite(ModifyInheritedTagDocumentationAttributeTests.class));
132         suite.addTest(new TestSuite(ModifyInheritedTagElementClassRefAttributeTests.class));
133         suite.addTest(new TestSuite(ModifyInheritedTagForeignkeyAttributeTests.class));
134         suite.addTest(new TestSuite(ModifyInheritedTagIdAttributeTests.class));
135         suite.addTest(new TestSuite(ModifyInheritedTagIgnoreAttributeTests.class));
136         suite.addTest(new TestSuite(ModifyInheritedTagJdbcTypeAttributeTests.class));
137         suite.addTest(new TestSuite(ModifyInheritedTagLengthAttributeTests.class));
138         suite.addTest(new TestSuite(ModifyInheritedTagLockingAttributeTests.class));
139         suite.addTest(new TestSuite(ModifyInheritedTagNullableAttributeTests.class));
140         suite.addTest(new TestSuite(ModifyInheritedTagOrderbyAttributeTests.class));
141         suite.addTest(new TestSuite(ModifyInheritedTagOtmDependentAttributeTests.class));
142         suite.addTest(new TestSuite(ModifyInheritedTagPrecisionAndScaleAttributesTests.class));
143         suite.addTest(new TestSuite(ModifyInheritedTagPrimarykeyAttributeTests.class));
144         suite.addTest(new TestSuite(ModifyInheritedTagProxyAttributeTests.class));
145         suite.addTest(new TestSuite(ModifyInheritedTagQueryCustomizerAttributeTests.class));
146         suite.addTest(new TestSuite(ModifyInheritedTagRefreshAttributeTests.class));
147         suite.addTest(new TestSuite(ModifyInheritedTagSequenceNameAttributeTests.class));
148         suite.addTest(new TestSuite(ModifyInheritedTagUpdateLockAttributeTests.class));
149         suite.addTest(new TestSuite(NestedTagSimpleTests.class));
150         suite.addTest(new TestSuite(ModifyNestedTagSimpleTests.class));
151         suite.addTest(new TestSuite(DeleteProcedureTagTests.class));
152         suite.addTest(new TestSuite(InsertProcedureTagTests.class));
153         suite.addTest(new TestSuite(UpdateProcedureTagTests.class));
154         suite.addTest(new TestSuite(ProcedureArgumentTagTests.class));
155 */

156         
157         return suite;
158     }
159 }
160
Popular Tags