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