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