01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TestQuery.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.database.queries;
09:
10: import junit.framework.TestCase;
11:
12: import com.uwyn.rife.database.Datasource;
13: import com.uwyn.rife.database.Datasources;
14:
15: public abstract class TestQuery extends TestCase {
16: protected Datasource mPgsql = null;
17: protected Datasource mOracle = null;
18: protected Datasource mHsqldb = null;
19: protected Datasource mH2 = null;
20: protected Datasource mMysql = null;
21: protected Datasource mFirebird = null;
22: protected Datasource mMckoi = null;
23: protected Datasource mDerby = null;
24: protected Datasource mDaffodil = null;
25:
26: protected TestQuery(String name) {
27: super (name);
28: }
29:
30: public void setUp() {
31: mPgsql = Datasources.getRepInstance().getDatasource(
32: "unittestspgsql");
33: mOracle = Datasources.getRepInstance().getDatasource(
34: "unittestsoracle");
35: mMysql = Datasources.getRepInstance().getDatasource(
36: "unittestsmysql");
37: mHsqldb = Datasources.getRepInstance().getDatasource(
38: "unittestshsqldb");
39: mH2 = Datasources.getRepInstance().getDatasource("unittestsh2");
40: mFirebird = Datasources.getRepInstance().getDatasource(
41: "unittestsfirebird");
42: mMckoi = Datasources.getRepInstance().getDatasource(
43: "unittestsmckoi");
44: mDerby = Datasources.getRepInstance().getDatasource(
45: "unittestsderby");
46: mDaffodil = Datasources.getRepInstance().getDatasource(
47: "unittestsdaffodil");
48: }
49: }
|