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.
Fields inherited from class com.daedalos.junit.TestResource |
description, name |
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 |
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
DBTestResource
public DBTestResource()
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
Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.