adding test scripts
[csql.git] / test / jdbc / network / Gateway / GwTest2.java
blobd0ab5ccc4f9f20ad04d03f6a5b0a8f0390deb70e
1 //Donot start the server .Connect with connectstring "jdbc:gateway://localhost:5678" and null for username and password. It should fail
2 import java.sql.*;
3 /**
5 * @Author : Nihar
6 */
7 public class GwTest2 {
8 public static void main(String[] args)
10 try
12 Class.forName("csql.jdbc.JdbcSqlDriver");
13 Connection con = DriverManager.getConnection("jdbc:gateway://localhost:5678", null, null);
14 if (con != null) {con.close(); System.exit(1);}
15 }catch(Exception e) {
16 System.out.println("Exception in Test: "+e.getMessage());
17 e.getStackTrace();
18 System.exit(0);