adding test scripts
[csql.git] / test / jdbc / network / Gateway / ConnTest02.java
blob57e72c39d77cf07e4a213827d11f2aa1fb66b0cd
1 //To connect with connectstring "jdbc:gateway://localhost:5678" and give null properties object. It should fail.
2 import java.sql.*;
3 public class ConnTest02
5 public static void main(String[] args)
7 try
9 Class.forName("csql.jdbc.JdbcSqlDriver");
10 Connection con = DriverManager.getConnection("jdbc:gateway://localhost:5678", null, null);
11 if (con != null) {con.close(); System.exit(1);}
12 }catch(Exception e) {
13 System.out.println("Exception in Test: "+e.getMessage());
14 e.getStackTrace();
15 System.exit(0);