jxUtil 0.6

org.sourceforge.jxutil.dbtest.framework
Class DBTestResource

java.lang.Object
  |
  +--com.daedalos.junit.TestResource
        |
        +--org.sourceforge.jxutil.dbtest.framework.DBTestResource

public final class DBTestResource
extends com.daedalos.junit.TestResource

TestResource which provides database connectivity to the tests. It should not be necessary to use this class directly.


Field Summary
private static Category cat
           
private  Connection[] connections
           
private  DBTestConfig.DBTestSuite dbts
           
private static String DEF_FILE
           
 
Fields inherited from class com.daedalos.junit.TestResource
description, name
 
Constructor Summary
DBTestResource()
           
 
Method Summary
 String[] getClasses()
           
 Connection[] getConnections()
           
 boolean start()
          Start the resource.
 boolean stop()
          Stop the resource.
 
Methods inherited from class com.daedalos.junit.TestResource
getDescription, getName, getState, initialize, isStarted, isStopped, setDescription, setName, startTestResource, stopTestResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

private static final Category cat

connections

private Connection[] connections

dbts

private final DBTestConfig.DBTestSuite dbts

DEF_FILE

private static final String DEF_FILE
See Also:
Constant Field Values
Constructor Detail

DBTestResource

public DBTestResource()
Method Detail

getClasses

public String[] getClasses()

getConnections

public Connection[] getConnections()

start

public boolean start()
Start the resource. Loads test and database information from the default properties file (dbtest.xml) and opens a connection to each database defined in the property file.

Specified by:
start in class com.daedalos.junit.TestResource

stop

public boolean stop()

Stop the resource. Closes all connections to the database.

Specified by:
stop in class com.daedalos.junit.TestResource

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.