KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > MaxDBTests


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: MaxDBTests.java,v 1.2 2007/01/07 06:14:21 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems;
23
24 import junit.framework.Test;
25 import junit.framework.TestSuite;
26
27 import org.opensubsystems.core.persist.db.DatabaseTestSuite;
28 import org.opensubsystems.core.util.Config;
29
30 /**
31  * Tests to execute for MaxDB.
32  *
33  * How to use SAPDB with hidden ROWID column like Oracle
34  * http://listserv.sap.com/pipermail/sapdb.general/2002-July/012933.html
35  * Be sure to be connected in oracle mode and place the keyword
36  * ROWID just behind the table definition :
37  * create table example (column1 integer) ROWID
38  * After that your table contains a hidden column ROWID that can be selected
39  * in following sql statements
40  *
41  * @version $Id: MaxDBTests.java,v 1.2 2007/01/07 06:14:21 bastafidli Exp $
42  * @author Miro Halas
43  * @code.reviewer Miro Halas
44  * @code.reviewed Initial revision
45  */

46 public class MaxDBTests extends GenericDatabaseTests
47 {
48    /**
49     * Create suite of all tests which should be run for this database.
50     *
51     * @return Test - suite of tests to run for this database
52     */

53    public static Test suite(
54    )
55    {
56       Config.getInstance().setPropertyFileName("osstestmaxdb.properties");
57
58       TestSuite suite = new DatabaseTestSuite("Test for MaxDB");
59       
60       addGenericTests(suite);
61       
62       // TODO: Everyone: Add MaxDB specific tests here
63

64       return suite;
65    }
66 }
67
Popular Tags