1 package org.jboss.test.web.mock; 2 3 import java.io.PrintWriter ; 4 import java.io.Serializable ; 5 import java.sql.Connection ; 6 import java.sql.SQLException ; 7 8 import javax.sql.DataSource ; 9 10 16 public class MockDataSource implements DataSource , Serializable 17 { 18 private static final long serialVersionUID = 1; 19 20 public MockDataSource() 21 { 22 System.err.println("MockDataSource"); 23 } 24 25 public Connection getConnection() throws SQLException 26 { 27 return null; 28 } 29 30 public Connection getConnection(String arg0, String arg1) throws SQLException 31 { 32 return null; 33 } 34 35 public int getLoginTimeout() throws SQLException 36 { 37 return 0; 38 } 39 40 public PrintWriter getLogWriter() throws SQLException 41 { 42 return null; 43 } 44 45 public void setLoginTimeout(int arg0) throws SQLException 46 { 47 48 } 49 50 public void setLogWriter(PrintWriter arg0) throws SQLException 51 { 52 53 } 54 55 } 56 | Popular Tags |