net.walend.jdbc.test
Class JDBCTestSetup

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.extensions.TestDecorator
              |
              +--net.walend.toolkit.junit.TestSetup
                    |
                    +--net.walend.jdbc.test.JDBCTestSetup
All Implemented Interfaces:
junit.framework.Test

public class JDBCTestSetup
extends TestSetup

This class sets up a ConnectionSource with one DataSource called "test". It uses the system property DBSetup to get the class name for the DBSetup implementation.

Since:
20001129
Author:
David Walend

Nested Class Summary
 
Nested classes inherited from class net.walend.toolkit.junit.TestSetup
 
Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
JDBCTestSetup(junit.framework.Test test)
           
 
Method Summary
protected  void setUp()
          Sets up the fixture.
protected  void tearDown()
          Tears down the fixture.
 
Methods inherited from class net.walend.toolkit.junit.TestSetup
run
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Constructor Detail

JDBCTestSetup

public JDBCTestSetup(junit.framework.Test test)
Method Detail

setUp

protected void setUp()
              throws java.lang.ClassNotFoundException,
                     java.lang.InstantiationException,
                     java.lang.IllegalAccessException,
                     java.sql.SQLException,
                     java.rmi.RemoteException
Description copied from class: TestSetup
Sets up the fixture.

Specified by:
setUp in class TestSetup

tearDown

protected void tearDown()
Description copied from class: TestSetup
Tears down the fixture.

Specified by:
tearDown in class TestSetup


Copyright (c) 2000, 2001, David Walend