jimm.datavision.test
Class ConnectionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jimm.datavision.test.ConnectionTest
All Implemented Interfaces:
junit.framework.Test

public class ConnectionTest
extends junit.framework.TestCase

Tests the Database class and the ability to give a connection to a report and the state of a connection's query after reconnecting.

Author:
Jim Menard, jimm@io.com

Field Summary
protected static java.lang.String CONNECTION_INFO
           
protected static java.lang.String DB_NAME
           
protected static java.lang.String DB_PASSWORD
           
protected static java.lang.String DB_USER
           
protected static java.lang.String DRIVER_CLASS_NAME
           
protected static java.io.File EXAMPLE_REPORT
           
protected static java.io.File OUT_FILE
           
protected static java.lang.String PARAMETER_XML_FILE_NAME
           
 
Constructor Summary
ConnectionTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testConnection()
           
 void testDatabaseReset()
           
 void testQueryAfterReset()
           
 void testSchemaNamesInColumns()
           
 
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

EXAMPLE_REPORT

protected static final java.io.File EXAMPLE_REPORT

PARAMETER_XML_FILE_NAME

protected static final java.lang.String PARAMETER_XML_FILE_NAME

OUT_FILE

protected static final java.io.File OUT_FILE

DRIVER_CLASS_NAME

protected static final java.lang.String DRIVER_CLASS_NAME
See Also:
Constant Field Values

CONNECTION_INFO

protected static final java.lang.String CONNECTION_INFO
See Also:
Constant Field Values

DB_NAME

protected static final java.lang.String DB_NAME
See Also:
Constant Field Values

DB_USER

protected static final java.lang.String DB_USER
See Also:
Constant Field Values

DB_PASSWORD

protected static final java.lang.String DB_PASSWORD
See Also:
Constant Field Values
Constructor Detail

ConnectionTest

public ConnectionTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

testConnection

public void testConnection()

testQueryAfterReset

public void testQueryAfterReset()

testDatabaseReset

public void testDatabaseReset()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testSchemaNamesInColumns

public void testSchemaNamesInColumns()
                              throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)