PageRenderTime 28ms CodeModel.GetById 15ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/com/google/appengine/datanucleus/AllTests.java

http://datanucleus-appengine.googlecode.com/
Java | 223 lines | 196 code | 4 blank | 23 comment | 0 complexity | c1bd7219bd8c754c9556e9de0e70ba2d MD5 | raw file
  1/**********************************************************************
  2Copyright (c) 2009 Google Inc.
  3
  4Licensed under the Apache License, Version 2.0 (the "License");
  5you may not use this file except in compliance with the License.
  6You may obtain a copy of the License at
  7
  8http://www.apache.org/licenses/LICENSE-2.0
  9
 10Unless required by applicable law or agreed to in writing, software
 11distributed under the License is distributed on an "AS IS" BASIS,
 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13See the License for the specific language governing permissions and
 14limitations under the License.
 15**********************************************************************/
 16package com.google.appengine.datanucleus;
 17
 18import junit.framework.TestSuite;
 19
 20import com.google.appengine.datanucleus.jdo.JDOPersistenceManagerFactoryTest;
 21import com.google.appengine.datanucleus.jdo.JDOAbstractBaseClassTest;
 22import com.google.appengine.datanucleus.jdo.JDOAncestorTest;
 23import com.google.appengine.datanucleus.jdo.JDOAttachDetachTest;
 24import com.google.appengine.datanucleus.jdo.JDOBatchDeleteTest;
 25import com.google.appengine.datanucleus.jdo.JDOBatchInsertTest;
 26import com.google.appengine.datanucleus.jdo.JDOBidirectionalOneToManySubclassTest;
 27import com.google.appengine.datanucleus.jdo.JDOBidirectionalOneToOneSubclassTest;
 28import com.google.appengine.datanucleus.jdo.JDOBytesTest;
 29import com.google.appengine.datanucleus.jdo.JDOConcurrentModificationTest;
 30import com.google.appengine.datanucleus.jdo.JDODataSourceConfigTest;
 31import com.google.appengine.datanucleus.jdo.JDODatastoreBridgeTest;
 32import com.google.appengine.datanucleus.jdo.JDODatastoreServiceConfigTest;
 33import com.google.appengine.datanucleus.jdo.JDODeleteTest;
 34import com.google.appengine.datanucleus.jdo.JDOEmbeddedTest;
 35import com.google.appengine.datanucleus.jdo.JDOEnumTest;
 36import com.google.appengine.datanucleus.jdo.JDOFetchGroupTest;
 37import com.google.appengine.datanucleus.jdo.JDOFetchTest;
 38import com.google.appengine.datanucleus.jdo.JDOImplicitEntityGroupTest;
 39import com.google.appengine.datanucleus.jdo.JDOInsertionTest;
 40import com.google.appengine.datanucleus.jdo.JDOMakeTransientTest;
 41import com.google.appengine.datanucleus.jdo.JDOMetaDataValidatorTest;
 42import com.google.appengine.datanucleus.jdo.JDONullValueTest;
 43import com.google.appengine.datanucleus.jdo.JDOOneToManyListTest;
 44import com.google.appengine.datanucleus.jdo.JDOOneToManyPolymorphicListTest;
 45import com.google.appengine.datanucleus.jdo.JDOOneToManyPolymorphicSetTest;
 46import com.google.appengine.datanucleus.jdo.JDOOneToManySetTest;
 47import com.google.appengine.datanucleus.jdo.JDOOneToOneTest;
 48import com.google.appengine.datanucleus.jdo.JDOPrimaryKeyTest;
 49import com.google.appengine.datanucleus.jdo.JDOSequenceTest;
 50import com.google.appengine.datanucleus.jdo.JDOStorageVersionTest;
 51import com.google.appengine.datanucleus.jdo.JDOSubclassTest;
 52import com.google.appengine.datanucleus.jdo.JDOSuperclassTableInheritanceTest;
 53import com.google.appengine.datanucleus.jdo.JDOTableAndColumnTest;
 54import com.google.appengine.datanucleus.jdo.JDOTransactionTest;
 55import com.google.appengine.datanucleus.jdo.JDOUnidirectionalOneToManySubclassTest;
 56import com.google.appengine.datanucleus.jdo.JDOUnidirectionalOneToOneSubclassTest;
 57import com.google.appengine.datanucleus.jdo.JDOUnindexedPropertiesTest;
 58import com.google.appengine.datanucleus.jdo.JDOUpdateTest;
 59import com.google.appengine.datanucleus.jpa.JPAEntityManagerFactoryTest;
 60import com.google.appengine.datanucleus.jpa.JPAAbstractBaseClassTest;
 61import com.google.appengine.datanucleus.jpa.JPAAncestorTest;
 62import com.google.appengine.datanucleus.jpa.JPAAttachDetachTest;
 63import com.google.appengine.datanucleus.jpa.JPABidirectionalOneToManySubclassTest;
 64import com.google.appengine.datanucleus.jpa.JPABidirectionalOneToOneSubclassTest;
 65import com.google.appengine.datanucleus.jpa.JPABytesTest;
 66import com.google.appengine.datanucleus.jpa.JPAConcurrentModificationTest;
 67import com.google.appengine.datanucleus.jpa.JPADataSourceConfigTest;
 68import com.google.appengine.datanucleus.jpa.JPADatastoreBridgeTest;
 69import com.google.appengine.datanucleus.jpa.JPADatastoreServiceConfigTest;
 70import com.google.appengine.datanucleus.jpa.JPADeleteTest;
 71import com.google.appengine.datanucleus.jpa.JPAEmbeddedTest;
 72import com.google.appengine.datanucleus.jpa.JPAEnumTest;
 73import com.google.appengine.datanucleus.jpa.JPAFetchTest;
 74import com.google.appengine.datanucleus.jpa.JPAImplicitEntityGroupTest;
 75import com.google.appengine.datanucleus.jpa.JPAInsertionTest;
 76import com.google.appengine.datanucleus.jpa.JPALobTest;
 77import com.google.appengine.datanucleus.jpa.JPAMetaDataValidatorTest;
 78import com.google.appengine.datanucleus.jpa.JPANonWritableFieldsTest;
 79import com.google.appengine.datanucleus.jpa.JPANullValueTest;
 80import com.google.appengine.datanucleus.jpa.JPAOneToManyListTest;
 81import com.google.appengine.datanucleus.jpa.JPAOneToManyPolymorphicListTest;
 82import com.google.appengine.datanucleus.jpa.JPAOneToManyPolymorphicSetTest;
 83import com.google.appengine.datanucleus.jpa.JPAOneToManySetTest;
 84import com.google.appengine.datanucleus.jpa.JPAOneToOneTest;
 85import com.google.appengine.datanucleus.jpa.JPAPrimaryKeyTest;
 86import com.google.appengine.datanucleus.jpa.JPASequenceTest;
 87import com.google.appengine.datanucleus.jpa.JPASingleTableInheritanceTest;
 88import com.google.appengine.datanucleus.jpa.JPAStorageVersionTest;
 89import com.google.appengine.datanucleus.jpa.JPASubclassTest;
 90import com.google.appengine.datanucleus.jpa.JPATableAndColumnTest;
 91import com.google.appengine.datanucleus.jpa.JPATransactionTest;
 92import com.google.appengine.datanucleus.jpa.JPAUnidirectionalOneToManySubclassTest;
 93import com.google.appengine.datanucleus.jpa.JPAUnidirectionalOneToOneSubclassTest;
 94import com.google.appengine.datanucleus.jpa.JPAUnindexedPropertiesTest;
 95import com.google.appengine.datanucleus.jpa.JPAUpdateTest;
 96import com.google.appengine.datanucleus.jpa.JPAVersionTest;
 97import com.google.appengine.datanucleus.query.JDOQLCursorTest;
 98import com.google.appengine.datanucleus.query.JDOQLDeleteTest;
 99import com.google.appengine.datanucleus.query.JDOQLQueryOwnedJoinTest;
100import com.google.appengine.datanucleus.query.JDOQLQueryTest;
101import com.google.appengine.datanucleus.query.JDOQLQueryUnownedJoinTest;
102import com.google.appengine.datanucleus.query.JPQLCursorTest;
103import com.google.appengine.datanucleus.query.JPQLDeleteTest;
104import com.google.appengine.datanucleus.query.JPQLQueryOwnedJoinTest;
105import com.google.appengine.datanucleus.query.JPQLQueryTest;
106import com.google.appengine.datanucleus.query.JPQLQueryUnownedJoinTest;
107import com.google.appengine.datanucleus.query.JoinHelperTest;
108import com.google.appengine.datanucleus.query.LazyResultTest;
109import com.google.appengine.datanucleus.query.SlicingIterableTest;
110
111/**
112 * All tests for the app engine datanucleus plugin.
113 * This will be difficult to keep in sync but we'll do our best.
114 *
115 * @author Max Ross <maxr@google.com>
116 */
117public class AllTests {
118  public static TestSuite suite() {
119    TestSuite suite = new TestSuite();
120    suite.addTestSuite(JDOPersistenceManagerFactoryTest.class);
121    suite.addTestSuite(JPAEntityManagerFactoryTest.class);
122    suite.addTestSuite(JDOQLQueryTest.class);
123    suite.addTestSuite(JPQLQueryTest.class);
124    suite.addTestSuite(LazyResultTest.class);
125    suite.addTestSuite(SerializationTest.class);
126    suite.addTestSuite(SerializationManagerTest.class);
127    suite.addTestSuite(JDOFetchTest.class);
128    suite.addTestSuite(JDOInsertionTest.class);
129    suite.addTestSuite(JDOUpdateTest.class);
130    suite.addTestSuite(JDODeleteTest.class);
131    suite.addTestSuite(JDOTransactionTest.class);
132    suite.addTestSuite(JPAFetchTest.class);
133    suite.addTestSuite(JPAInsertionTest.class);
134    suite.addTestSuite(JPAUpdateTest.class);
135    suite.addTestSuite(JPADeleteTest.class);
136    suite.addTestSuite(JPATransactionTest.class);
137    suite.addTestSuite(JDOAncestorTest.class);
138    suite.addTestSuite(JPAAncestorTest.class);
139    suite.addTestSuite(JDOTableAndColumnTest.class);
140    suite.addTestSuite(JPATableAndColumnTest.class);
141    suite.addTestSuite(JPAOneToOneTest.class);
142    suite.addTestSuite(JDOOneToOneTest.class);
143    suite.addTestSuite(JPAImplicitEntityGroupTest.class);
144    suite.addTestSuite(JDOImplicitEntityGroupTest.class);
145    suite.addTestSuite(JPAOneToManyListTest.class);
146    suite.addTestSuite(JPAOneToManySetTest.class);
147    suite.addTestSuite(JDOOneToManyListTest.class);
148    suite.addTestSuite(JDOOneToManySetTest.class);
149    // TODO(maxr) Reenable once we reenable support for arrays.
150//    suite.addTestSuite(JDOOneToManyArrayTest.class);
151    suite.addTestSuite(JDODataSourceConfigTest.class);
152    suite.addTestSuite(JPADataSourceConfigTest.class);
153    suite.addTestSuite(JDOEnumTest.class);
154    suite.addTestSuite(JPAEnumTest.class);
155    suite.addTestSuite(JDONullValueTest.class);
156    suite.addTestSuite(JPANullValueTest.class);
157    suite.addTestSuite(TypeConversionUtilsTest.class);
158    suite.addTestSuite(JDOMakeTransientTest.class);
159    suite.addTestSuite(JDOPrimaryKeyTest.class);
160    suite.addTestSuite(JPAPrimaryKeyTest.class);
161    suite.addTestSuite(JDOMetaDataValidatorTest.class);
162    suite.addTestSuite(JPAMetaDataValidatorTest.class);
163    suite.addTestSuite(MetaDataValidatorTest.class);
164    suite.addTestSuite(EntityUtilsTest.class);
165    suite.addTestSuite(BigDecimalsTest.class);
166    suite.addTestSuite(JDOBytesTest.class);
167    suite.addTestSuite(JPABytesTest.class);
168    suite.addTestSuite(JDOConcurrentModificationTest.class);
169    suite.addTestSuite(JPAConcurrentModificationTest.class);
170    suite.addTestSuite(JDOEmbeddedTest.class);
171    suite.addTestSuite(JPAEmbeddedTest.class);
172    suite.addTestSuite(JDOFetchGroupTest.class);
173    suite.addTestSuite(JDOAttachDetachTest.class);
174    suite.addTestSuite(JPAAttachDetachTest.class);
175    suite.addTestSuite(JDOSubclassTest.class);
176    suite.addTestSuite(JPASubclassTest.class);
177    suite.addTestSuite(JDOAbstractBaseClassTest.class);
178    suite.addTestSuite(JPAAbstractBaseClassTest.class);
179    suite.addTestSuite(JDOBidirectionalOneToOneSubclassTest.class);
180    suite.addTestSuite(JPABidirectionalOneToOneSubclassTest.class);
181    suite.addTestSuite(JDOBidirectionalOneToManySubclassTest.class);
182    suite.addTestSuite(JPABidirectionalOneToManySubclassTest.class);
183    suite.addTestSuite(JDOUnidirectionalOneToOneSubclassTest.class);
184    suite.addTestSuite(JPAUnidirectionalOneToOneSubclassTest.class);
185    suite.addTestSuite(JDOUnidirectionalOneToManySubclassTest.class);
186    suite.addTestSuite(JPAUnidirectionalOneToManySubclassTest.class);
187    suite.addTestSuite(JPALobTest.class);
188    suite.addTestSuite(JDOUnindexedPropertiesTest.class);
189    suite.addTestSuite(JPAUnindexedPropertiesTest.class);
190    suite.addTestSuite(JDOBatchInsertTest.class);
191    suite.addTestSuite(JDOBatchDeleteTest.class);
192    suite.addTestSuite(BatchManagerTest.class);
193    suite.addTestSuite(DatastoreManagerTest.class);
194    suite.addTestSuite(JPQLDeleteTest.class);
195    suite.addTestSuite(JDOQLDeleteTest.class);
196    suite.addTestSuite(JPASequenceTest.class);
197    suite.addTestSuite(JDOSequenceTest.class);
198    suite.addTestSuite(JoinHelperTest.class);
199    suite.addTestSuite(SlicingIterableTest.class);
200    suite.addTestSuite(JDOQLQueryUnownedJoinTest.class);
201    suite.addTestSuite(JDOQLQueryOwnedJoinTest.class);
202    suite.addTestSuite(JPQLQueryUnownedJoinTest.class);
203    suite.addTestSuite(JPQLQueryOwnedJoinTest.class);
204    suite.addTestSuite(JDOQLCursorTest.class);
205    suite.addTestSuite(JPQLCursorTest.class);
206    suite.addTestSuite(JDODatastoreBridgeTest.class);
207    suite.addTestSuite(JPADatastoreBridgeTest.class);
208    suite.addTestSuite(JPANonWritableFieldsTest.class);
209    suite.addTestSuite(JDOStorageVersionTest.class);
210    suite.addTestSuite(JPAStorageVersionTest.class);
211    suite.addTestSuite(JDODatastoreServiceConfigTest.class);
212    suite.addTestSuite(JPADatastoreServiceConfigTest.class);
213    suite.addTestSuite(JPAVersionTest.class);
214    suite.addTestSuite(JDOSuperclassTableInheritanceTest.class);
215    suite.addTestSuite(JPASingleTableInheritanceTest.class);
216    suite.addTestSuite(JDOOneToManyPolymorphicListTest.class);
217    suite.addTestSuite(JDOOneToManyPolymorphicSetTest.class);
218    suite.addTestSuite(JPAOneToManyPolymorphicListTest.class);
219    suite.addTestSuite(JPAOneToManyPolymorphicSetTest.class);
220    
221    return suite;
222  }
223}