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: public class AllTestsConfSingle extends TestSuite {
024:
025: static protected final String TEST_CONFIGURATION = "AllTestsConfSingle";
026:
027: protected void addTestSuites(TestSuite suites) {
028: suites.add(this );
029: }
030:
031: public Class[] tests() {
032: return new Class[] { SimplestPossible.class, };
033: }
034:
035: /**
036: * the number of test runs
037: */
038: public int RUNS = 1;
039:
040: /**
041: * delete the database files
042: */
043: public boolean DELETE_FILE = true;
044:
045: /**
046: * run the tests stand-alone
047: */
048: public boolean SOLO = true;
049:
050: /**
051: * run the tests in client/server mode
052: */
053: public boolean CLIENT_SERVER = false;
054:
055: /**
056: * use ObjectServer#openClient() instead of Db4o.openClient()
057: */
058: public static boolean EMBEDDED_CLIENT = false;
059:
060: /**
061: * run the test against a memory file instead of disc file
062: */
063: public static boolean MEMORY_FILE = false;
064:
065: /**
066: * run the client/server test against a remote server.
067: * This requires AllTestsServer to be started on the other machine and
068: * SERVER_HOSTNAME to be set correctly.
069: */
070: final boolean REMOTE_SERVER = false;
071:
072: /**
073: * the database file to be used for the server.
074: */
075: public static String FILE_SERVER = "xt_serv.yap";
076:
077: /**
078: * the database file to be used stand-alone.
079: */
080: public static String FILE_SOLO = "xt_solo.yap";
081:
082: /**
083: * the server host name.
084: */
085: public static String SERVER_HOSTNAME = "localhost";
086:
087: /**
088: * the server port.
089: */
090: public static int SERVER_PORT = 4448;
091:
092: /**
093: * the db4o user.
094: */
095: public static String DB4O_USER = "db4o";
096:
097: /**
098: * the db4o password.
099: */
100: public static String DB4O_PASSWORD = "db4o";
101:
102: /**
103: * path to blobs held externally
104: */
105: public static String BLOB_PATH = "TEMP/db4oTestBlobs";
106:
107: }
|