KickJava   Java API By Example, From Geeks To Geeks.

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


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
24
25 public class AllTestsConfSingle extends TestSuite{
26
27     static protected final String JavaDoc TEST_CONFIGURATION = "AllTestsConfSingle";
28     
29     protected void addTestSuites(TestSuite suites) {
30         suites.add(this);
31     }
32     
33     public Class JavaDoc[] tests(){
34         return new Class JavaDoc[] {
35             SimplestPossible.class,
36         };
37     }
38
39     /**
40       * the number of test runs
41       */

42     public int RUNS = 1;
43
44     /**
45      * delete the database files
46      */

47     public boolean DELETE_FILE = true;
48
49     /**
50       * run the tests stand-alone
51       */

52     public boolean SOLO = true;
53     
54     /**
55       * run the tests in client/server mode
56       */

57     public boolean CLIENT_SERVER = false;
58     
59     /**
60      * use ObjectServer#openClient() instead of Db4o.openClient()
61      */

62     public static boolean EMBEDDED_CLIENT = false;
63
64     /**
65      * run the test against a memory file instead of disc file
66      */

67     public static boolean MEMORY_FILE = false;
68
69     /**
70       * run the client/server test against a remote server.
71       * This requires AllTestsServer to be started on the other machine and
72       * SERVER_HOSTNAME to be set correctly.
73       */

74     final boolean REMOTE_SERVER = false;
75
76     /**
77      * the database file to be used for the server.
78      */

79     public static String JavaDoc FILE_SERVER = "xt_serv.yap";
80
81     /**
82      * the database file to be used stand-alone.
83      */

84     public static String JavaDoc FILE_SOLO = "xt_solo.yap";
85     
86     /**
87      * the server host name.
88      */

89     public static String JavaDoc SERVER_HOSTNAME = "localhost";
90
91     /**
92      * the server port.
93      */

94     public static int SERVER_PORT = 4448;
95
96     /**
97      * the db4o user.
98      */

99     public static String JavaDoc DB4O_USER = "db4o";
100
101     /**
102      * the db4o password.
103      */

104     public static String JavaDoc DB4O_PASSWORD = "db4o";
105     
106     /**
107      * path to blobs held externally
108      */

109     public static String JavaDoc BLOB_PATH = "TEMP/db4oTestBlobs";
110
111 }
112
Popular Tags