KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > db4o > test > AllTestsConfAll


1 /* Copyright (C) 2004 - 2006 db4objects Inc. http://www.db4o.com
2
3 This file is part of the db4o open source object database.
4
5 db4o is free software; you can redistribute it and/or modify it under
6 the terms of version 2 of the GNU General Public License as published
7 by the Free Software Foundation and as clarified by db4objects' GPL
8 interpretation policy, available at
9 http://www.db4o.com/about/company/legalpolicies/gplinterpretation/
10 Alternatively you can write to db4objects, Inc., 1900 S Norfolk Street,
11 Suite 350, San Mateo, CA 94403, USA.
12
13 db4o is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */

21 package com.db4o.test;
22
23 import com.db4o.test.cluster.BasicClusterTest;
24 import com.db4o.test.conjunctions.ConjunctionsTestSuite;
25 import com.db4o.test.constraints.ConstraintsTestSuite;
26 import com.db4o.test.java.JavaTestSuite;
27 import com.db4o.test.nativequery.NativeQueryTestSuite;
28 import com.db4o.test.performance.IndexQueryingIsFast;
29 import com.db4o.test.soda.SodaNumberCoercion;
30
31 public class AllTestsConfAll extends TestSuite{
32
33     static protected final String JavaDoc TEST_CONFIGURATION = "AllTestsConfAll";
34     
35     protected void addTestSuites(TestSuite suites) {
36         suites.add(this);
37         suites.add(new ConstraintsTestSuite());
38         suites.add(new ConjunctionsTestSuite());
39         suites.add(new JavaTestSuite());
40         suites.add(new NativeQueryTestSuite());
41     }
42     
43     public Class JavaDoc[] tests(){
44         return new Class JavaDoc[] {
45             Backup.class,
46             BasicClusterTest.class,
47             BindFileSize.class,
48             CascadeToHashtable.class,
49             CascadeToVector.class,
50             CascadeToExistingVectorMember.class,
51             CallbackCanDelete.class,
52             CallbacksTestCase.class,
53             CaseInsensitive.class,
54             Circular1.class,
55             Circular2.class,
56             // takes too long in JDK1.1 setup due to locking timeout
57
// CrashSimulatingTest.class,
58
CreateIndexInherited.class,
59             CustomActivationDepth.class,
60             DeleteDeep.class,
61             DeepSet.class,
62             DifferentAccessPaths.class,
63             DualDelete.class,
64             EncryptionWrongPassword.class,
65             ExtMethods.class,
66             ExtendsDate.class,
67             FileSizeOnReopen.class,
68             GetAll.class,
69             GetAllSoda.class,
70             GreaterOrEqual.class,
71             IndexedByIdentity.class,
72             IndexCreateDrop.class,
73             IndexQueryingIsFast.class,
74             IndexedUpdatesWithNull.class,
75             InternStrings.class,
76             InvalidUUID.class,
77             IsStored.class,
78             Isolation.class,
79             Messaging.class,
80             MultiLevelIndex.class,
81             NeverAnObjectStored.class,
82             NoInstanceStored.class,
83             NoInternalClasses.class,
84             NullWrapperQueries.class,
85             ObjectContainerIsTransient.class,
86             ObjectSetIDs.class,
87             ParameterizedEvaluation.class,
88             PeekPersisted.class,
89             
90             // disabled because it fails due to fix
91
// See comments in: YapClass.deleteEmbedded1()
92

93             // PrimitiveArrayFileSize.class,
94

95             QueryDeleted.class,
96             QueryForUnknownField.class,
97             QueryNonExistant.class,
98             ReadAs.class,
99             ReferenceThis.class,
100             Refresh.class,
101             Rename.class,
102             SameSizeOnReopen.class,
103             SerializableTranslator.class,
104             SetDeactivated.class,
105             SetSemaphore.class,
106             SharedObjectContainer.class,
107             SmallerOrEqual.class,
108             SodaNoDuplicates.class,
109             SodaNumberCoercion.class,
110             //SortResult.class,
111
StoredClassInformation.class,
112             StoredFieldValue.class,
113             //StoreObject.class,
114
StorePrimitiveDirectly.class,
115             SwitchingFilesFromClient.class,
116             TestHashTable.class,
117             TwoClients.class,
118             UuidAware.class,
119             XTEAEncryption.class
120         };
121     }
122     
123
124     /**
125       * the number of test runs
126       */

127     public int RUNS = 1;
128
129     /**
130      * delete the database files
131      */

132     public boolean DELETE_FILE = true;
133
134     /**
135       * run the tests stand-alone
136       */

137     public boolean SOLO = true;
138
139     /**
140       * run the tests in client/server mode
141       */

142     public boolean CLIENT_SERVER = true;
143     
144     /**
145      * use ObjectServer#openClient() instead of Db4o.openClient()
146      */

147     public static boolean EMBEDDED_CLIENT = false;
148     
149     /**
150      * run the test against a memory file instead of disc file
151      */

152     public static boolean MEMORY_FILE = false;
153
154     /**
155       * run the client/server test against a remote server.
156       * This requires AllTestsServer to be started on the other machine and
157       * SERVER_HOSTNAME to be set correctly.
158       */

159     final boolean REMOTE_SERVER = false;
160
161     /**
162      * the database file to be used for the server.
163      */

164     public static String JavaDoc FILE_SERVER = "xt_serv.yap";
165
166     /**
167      * the database file to be used stand-alone.
168      */

169     public static String JavaDoc FILE_SOLO = "xt_solo.yap";
170     
171     /**
172      * the server host name.
173      */

174     public static String JavaDoc SERVER_HOSTNAME = "localhost";
175
176     /**
177      * the server port.
178      */

179     public static int SERVER_PORT = 4448;
180
181     /**
182      * the db4o user.
183      */

184     public static String JavaDoc DB4O_USER = "db4o";
185
186     /**
187      * the db4o password.
188      */

189     public static String JavaDoc DB4O_PASSWORD = "db4o";
190     
191     /**
192      * path to blobs held externally
193      */

194     public static String JavaDoc BLOB_PATH = "test/TEMP/db4oTestBlobs";
195
196 }
197
Popular Tags