~ubuntu-branches/ubuntu/maverick/libpgjava/maverick

« back to all changes in this revision

Viewing changes to org/postgresql/test/jdbc3/Jdbc3TestSuite.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2006-04-25 00:07:07 UTC
  • mfrom: (1.3.1 upstream) (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060425000707-6lr2s0awuz4z48hm
* Drop support for the old jdbc2 driver (can be reverted if wanted)
  (closes: #358345).
* New upstream (thanks to Wolfgang Baer).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
*
 
3
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
 
4
*
 
5
* IDENTIFICATION
 
6
*   $PostgreSQL: pgjdbc/org/postgresql/test/jdbc3/Jdbc3TestSuite.java,v 1.15 2005/07/04 18:50:30 davec Exp $
 
7
*
 
8
*-------------------------------------------------------------------------
 
9
*/
 
10
package org.postgresql.test.jdbc3;
 
11
 
 
12
import org.postgresql.test.TestUtil;
 
13
 
 
14
import junit.framework.TestSuite;
 
15
 
 
16
/*
 
17
 * Executes all known tests for JDBC3
 
18
 */
 
19
public class Jdbc3TestSuite extends TestSuite
 
20
{
 
21
 
 
22
    /*
 
23
     * The main entry point for JUnit
 
24
     */
 
25
    public static TestSuite suite() throws Exception
 
26
    {
 
27
        Class.forName("org.postgresql.Driver");
 
28
        TestSuite suite = new TestSuite();
 
29
        try
 
30
        {
 
31
            java.sql.Connection con = TestUtil.openDB();
 
32
        
 
33
            if ( TestUtil.haveMinimumServerVersion( con, "8.1") )
 
34
            {
 
35
                suite.addTestSuite(Jdbc3CallableStatementTest.class);
 
36
            }
 
37
            con.close();
 
38
        }
 
39
        catch (Exception ex )
 
40
        {
 
41
            ex.printStackTrace();
 
42
        }
 
43
        
 
44
        suite.addTestSuite(Jdbc3SavepointTest.class);
 
45
        suite.addTestSuite(TypesTest.class);
 
46
        suite.addTestSuite(ResultSetTest.class);
 
47
        suite.addTestSuite(ParameterMetaDataTest.class);
 
48
        suite.addTestSuite(Jdbc3BlobTest.class);
 
49
        return suite;
 
50
    }
 
51
}