net.sf.saffron.test
Class JdbcTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.sf.saffron.test.JdbcTest
All Implemented Interfaces:
Test

public class JdbcTest
extends TestCase

JdbcTest is a set of unit tests

Since:
Mar 21, 2003
Version:
$Id: //open/saffron/src/net/sf/saffron/test/JdbcTest.java#2 $
Author:
jhyde

Field Summary
private static String driverClassName
           
private static String nl
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JdbcTest(String name)
           
 
Method Summary
 void foo()
           
private  Connection getConnection()
           
 void testConnect()
           
 void testImplicitRegistration()
           
 void testJoin()
           
 void testOuterJoinToQuery()
           
private  void testQuery(String query, String expected)
           
 void testRegisterDriver()
           
 void testSimpleQuery()
           
private  String toString(ResultSet resultSet)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

driverClassName

private static final String driverClassName
See Also:
Constant Field Values

nl

private static final String nl
Constructor Detail

JdbcTest

public JdbcTest(String name)
Method Detail

foo

public void foo()

testConnect

public void testConnect()
                 throws SQLException
SQLException

testImplicitRegistration

public void testImplicitRegistration()
                              throws ClassNotFoundException,
                                     InstantiationException,
                                     IllegalAccessException,
                                     SQLException
ClassNotFoundException
InstantiationException
IllegalAccessException
SQLException

testJoin

public void testJoin()
              throws SQLException
SQLException

testOuterJoinToQuery

public void testOuterJoinToQuery()
                          throws SQLException
SQLException

testRegisterDriver

public void testRegisterDriver()
                        throws ClassNotFoundException,
                               InstantiationException,
                               IllegalAccessException,
                               SQLException
ClassNotFoundException
InstantiationException
IllegalAccessException
SQLException

testSimpleQuery

public void testSimpleQuery()
                     throws SQLException
SQLException

getConnection

private Connection getConnection()
                          throws SQLException
SQLException

testQuery

private void testQuery(String query,
                       String expected)
                throws SQLException
SQLException

toString

private String toString(ResultSet resultSet)
                 throws SQLException
SQLException

SourceForge.net_Logo