1   /*******************************************************************************
2    *  Copyright (c) 2005, 2006 Imola Informatica.
3    *  All rights reserved. This program and the accompanying materials
4    *  are made available under the terms of the LGPL License v2.1
5    *  which accompanies this distribution, and is available at
6    *  http://www.gnu.org/licenses/lgpl.html
7    *******************************************************************************/
8   /**
9    * 
10   */
11  package it.imolinfo.jbi4cics.test.connection.jdbc.util;
12  
13  import junit.framework.TestCase;
14  
15  /**
16   * @author raffaele
17   *
18   */
19  public class BaseJdbcTestCase extends TestCase {
20  
21  /*  protected Connection conn;
22    
23    public void setUp(){
24      try{
25        Properties p=System.getProperties();
26        p.put("derby.system.home", "./derby");
27        DriverManager.registerDriver(new EmbeddedDriver());
28        DriverManager.registerDriver(new DB2Driver());
29        //conn=DriverManager.getConnection("jdbc:derby:jbi4cics;create=false");      
30        conn=DriverManager.getConnection("jdbc:db2://localhost:1527/jbi4cics","jbi4cics","jbi4cics");
31      }
32      catch(SQLException e){
33        e.printStackTrace();
34        fail(e.getMessage());
35      }
36    }
37  
38    *//**
39     * @param arg0
40     *//*
41    public BaseJdbcTestCase(String arg0) {
42      super(arg0);
43      // TODO Auto-generated constructor stub
44    }
45    
46    public void tearDown(){
47      try{
48        if (conn!=null){
49          conn.close();
50        }
51      }
52      catch(SQLException e){
53        e.printStackTrace();
54        fail(e.getMessage());
55      }
56    }
57  */
58  }