001: /* Copyright (C) 2004 - 2007 db4objects Inc. http://www.db4o.com
002:
003: This file is part of the db4o open source object database.
004:
005: db4o is free software; you can redistribute it and/or modify it under
006: the terms of version 2 of the GNU General Public License as published
007: by the Free Software Foundation and as clarified by db4objects' GPL
008: interpretation policy, available at
009: http://www.db4o.com/about/company/legalpolicies/gplinterpretation/
010: Alternatively you can write to db4objects, Inc., 1900 S Norfolk Street,
011: Suite 350, San Mateo, CA 94403, USA.
012:
013: db4o is distributed in the hope that it will be useful, but WITHOUT ANY
014: WARRANTY; without even the implied warranty of MERCHANTABILITY or
015: FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
016: for more details.
017:
018: You should have received a copy of the GNU General Public License along
019: with this program; if not, write to the Free Software Foundation, Inc.,
020: 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
021: package com.db4o.test;
022:
023: import com.db4o.test.cluster.*;
024: import com.db4o.test.conjunctions.*;
025: import com.db4o.test.constraints.*;
026: import com.db4o.test.java.*;
027: import com.db4o.test.nativequery.*;
028: import com.db4o.test.performance.*;
029:
030: public class AllTestsConfAll extends TestSuite {
031:
032: static protected final String TEST_CONFIGURATION = "AllTestsConfAll";
033:
034: protected void addTestSuites(TestSuite suites) {
035: suites.add(this );
036: suites.add(new ConstraintsTestSuite());
037: suites.add(new ConjunctionsTestSuite());
038: suites.add(new JavaTestSuite());
039: suites.add(new NativeQueryTestSuite());
040: }
041:
042: public Class[] tests() {
043: return new Class[] {
044: Backup.class,
045: BasicClusterTest.class,
046: BindFileSize.class,
047: CascadeToHashtable.class,
048: CascadeToVector.class,
049: CascadeToExistingVectorMember.class,
050: CallbackCanDelete.class,
051: CallbacksTestCase.class,
052: CaseInsensitive.class,
053: Circular1.class,
054: Circular2.class,
055: // takes too long in JDK1.1 setup due to locking timeout
056: // CrashSimulatingTest.class,
057: CreateIndexInherited.class,
058: CustomActivationDepth.class,
059: DeleteDeep.class,
060: DeepSet.class,
061: DifferentAccessPaths.class,
062: DualDelete.class,
063: EncryptionWrongPassword.class,
064: ExtMethods.class,
065: ExtendsDate.class,
066: FileSizeOnReopen.class,
067: GetAll.class,
068: GetAllSoda.class,
069: GreaterOrEqual.class,
070: IndexedByIdentity.class,
071: IndexCreateDrop.class,
072: IndexQueryingIsFast.class,
073: IndexedUpdatesWithNull.class,
074: InternStrings.class,
075: InvalidUUID.class,
076: IsStored.class,
077: Isolation.class,
078: Messaging.class,
079: MultiLevelIndex.class,
080: NeverAnObjectStored.class,
081: NoInstanceStored.class,
082: NoInternalClasses.class,
083: NullWrapperQueries.class,
084: ObjectContainerIsTransient.class,
085: ObjectSetIDs.class,
086: ParameterizedEvaluation.class,
087: PeekPersisted.class,
088:
089: // disabled because it fails due to fix
090: // See comments in: YapClass.deleteEmbedded1()
091:
092: // PrimitiveArrayFileSize.class,
093:
094: QueryDeleted.class, QueryForUnknownField.class,
095: QueryNonExistant.class, ReadAs.class,
096: ReferenceThis.class, Refresh.class, Rename.class,
097: SameSizeOnReopen.class, SerializableTranslator.class,
098: SetDeactivated.class, SetSemaphore.class,
099: SmallerOrEqual.class,
100: SodaNoDuplicates.class,
101: //SortResult.class,
102: StoredClassInformation.class,
103: StoredFieldValue.class,
104: //StoreObject.class,
105: StorePrimitiveDirectly.class,
106: SwitchingFilesFromClient.class, TestDescend.class,
107: TestHashTable.class, TwoClients.class, UuidAware.class, };
108: }
109:
110: /**
111: * the number of test runs
112: */
113: public int RUNS = 1;
114:
115: /**
116: * delete the database files
117: */
118: public boolean DELETE_FILE = true;
119:
120: /**
121: * run the tests stand-alone
122: */
123: public boolean SOLO = true;
124:
125: /**
126: * run the tests in client/server mode
127: */
128: public boolean CLIENT_SERVER = true;
129:
130: /**
131: * use ObjectServer#openClient() instead of Db4o.openClient()
132: */
133: public static boolean EMBEDDED_CLIENT = false;
134:
135: /**
136: * run the test against a memory file instead of disc file
137: */
138: public static boolean MEMORY_FILE = false;
139:
140: /**
141: * run the client/server test against a remote server.
142: * This requires AllTestsServer to be started on the other machine and
143: * SERVER_HOSTNAME to be set correctly.
144: */
145: final boolean REMOTE_SERVER = false;
146:
147: /**
148: * the database file to be used for the server.
149: */
150: public static String FILE_SERVER = "xt_serv.yap";
151:
152: /**
153: * the database file to be used stand-alone.
154: */
155: public static String FILE_SOLO = "xt_solo.yap";
156:
157: /**
158: * the server host name.
159: */
160: public static String SERVER_HOSTNAME = "localhost";
161:
162: /**
163: * the server port.
164: */
165: public static int SERVER_PORT = 4448;
166:
167: /**
168: * the db4o user.
169: */
170: public static String DB4O_USER = "db4o";
171:
172: /**
173: * the db4o password.
174: */
175: public static String DB4O_PASSWORD = "db4o";
176:
177: /**
178: * path to blobs held externally
179: */
180: public static String BLOB_PATH = "test/TEMP/db4oTestBlobs";
181:
182: }
|