adding test scripts
[csql.git] / test / jdbc / network / Gateway / ConnTest01.java
blob688ae07e8e359e2b97909bff47b3ede00b872459
1 //To connect with connectstring "jdbc:gateway://localhost:5678" and give correct "user" and "password" in properties object. It should pass.
4 import java.sql.*;
5 public class ConnTest01
6 {
7 public static void main(String[] args)
8 {
9 try
11 Class.forName("csql.jdbc.JdbcSqlDriver");
12 Connection con = DriverManager.getConnection("jdbc:gateway://localhost:5678", "root", "manager");
13 if ( con == null ) System.exit(1);
14 con.close();
15 System.exit(0);
16 }catch(Exception e) {
17 System.out.println("Exception in Test: "+e);
18 e.getStackTrace();
19 System.exit(1);