01: /*
02: * Copyright 2002 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: DatabaseTestCase.java,v 1.3 2002/11/08 05:06:27 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.test;
12:
13: import com.triactive.jdo.DatabaseProperties;
14: import junit.framework.TestCase;
15:
16: /**
17: * Abstract base class for all JDO unit tests needing access to a database.
18: * Provides database connection parameters acquired from system properties.
19: *
20: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21: * @version $Revision: 1.3 $
22: */
23:
24: public abstract class DatabaseTestCase extends TestCase implements
25: DatabaseProperties {
26: /*
27: static
28: {
29: try
30: {
31: java.sql.DriverManager.setLogStream(new java.io.PrintStream(new java.io.FileOutputStream("jdbc.log")));
32: }
33: catch (java.io.IOException e)
34: {
35: throw new RuntimeException(e.toString());
36: }
37: }
38: */
39:
40: /**
41: * Used by the JUnit framework to construct tests. Normally, programmers
42: * would never explicitly use this constructor.
43: *
44: * @param name Name of the <tt>TestCase</tt>.
45: */
46:
47: public DatabaseTestCase(String name) {
48: super(name);
49: }
50: }
|