KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > SapDBTests


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: SapDBTests.java,v 1.4 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 SapDB.
32  *
33  * Tested with SapDB 7.4.3.32
34  *
35  * How to use SAPDB with hidden ROWID column like Oracle
36  * http://listserv.sap.com/pipermail/sapdb.general/2002-July/012933.html
37  * Be sure to be connected in oracle mode and place the keyword
38  * ROWID just behind the table definition :
39  * create table example (column1 integer) ROWID
40  * After that your table contains a hidden column ROWID that can be selected
41  * in following sql statements
42  *
43  * @version $Id: SapDBTests.java,v 1.4 2007/01/07 06:14:21 bastafidli Exp $
44  * @author Miro Halas
45  * @code.reviewer Miro Halas
46  * @code.reviewed Initial revision
47  */

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

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

66       return suite;
67    }
68 }
69
Popular Tags