*** empty log message ***
[csql.git] / test / sqlnetwork / Jdbcnetwork / ConnTest2.java
blob79bfe9ed92153c2a7516da90ee3c92910f0158f0
1 //Connect with connect string "jdbc:csql://localhost:5678/csql" and null for username and password. It should fail.
2 import java.sql.*;
3 public class ConnTest2
5 public static void main(String[] args)
7 try
9 Class.forName("csql.jdbc.JdbcSqlDriver");
10 Connection con = DriverManager.getConnection("jdbc:csql://localhost:5678/csql", 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);