01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.harmony.sql.tests.java.sql;
19:
20: import java.sql.Driver;
21: import java.sql.DriverManager;
22: import java.sql.SQLException;
23:
24: /**
25: * Basic JDBC driver implementation to help with tests
26: *
27: */
28: public class TestHelper_Driver2 extends TestHelper_Driver1 {
29:
30: static {
31: Driver theDriver = new TestHelper_Driver2();
32: /*
33: * System.out.println("Driver2 classloader: " +
34: * theDriver.getClass().getClassLoader() ); System.out.println("Driver2
35: * object is: " + theDriver );
36: */
37: try {
38: DriverManager.registerDriver(theDriver);
39: } catch (SQLException e) {
40: System.out.println("Failed to register driver!");
41: }
42: } // end static block initializer
43:
44: protected TestHelper_Driver2() {
45: super ();
46: baseURL = "jdbc:mikes2";
47: } // end constructor TestHelper_Driver1()
48:
49: } // end class TestHelper_Driver2
|