KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > OracleTests


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: OracleTests.java,v 1.5 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 Oracle database.
32  *
33  * Tested with Oracle 9i
34  *
35  * This article describes that we need to select "tablename.*" if we want to
36  * use updatable result set, such as result set to do deleteRow on
37  * Using Java Database Connectivity (JDBC) with Oracle
38  * APR 05, 2002 By Bulusu Lakshman. Article is provided courtesy of Sams.
39  * http://www.informit.com/content/index.asp?product_id=%7BE20E9979%2D753D%2D4723%2D853A%2DF63BC10DC173%7D
40  * This is actually whole series of articles about Oracle and JDBC starting at
41  * http://www.informit.com/isapi/product_id~{E20E9979-753D-4723-853A-F63BC10DC173}/element_id~{9123AFB0-D0D4-483C-A5B7-A0D63BF3FF5E}/st~{94C03A97-1188-4875-8A06-17743BA224B7}/session_id~{DC462BCD-580E-425F-B9E4-3B869F9C3EAE}/content/articlex.asp
42  *
43  * @version $Id: OracleTests.java,v 1.5 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 OracleTests 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("osstestoracle.properties");
59
60       TestSuite suite = new DatabaseTestSuite("Test for Oracle");
61       
62       addGenericTests(suite);
63       
64       // TODO: Everyone: Add Oracle specific tests here
65

66       return suite;
67    }
68 }
69
Popular Tags