adding test scripts
[csql.git] / test / jdbc / network / Connection / ConnTest10.java
blob07701b7e6ba8b2b15363c8069c770656bb3d9e76
1 //Try to connect with connectstring "jdbc:sql" and give correct "user" and "password" in properties object. It should fail.
2 import java.sql.*;
3 public class ConnTest10
5 public static void main(String[] args)
7 try
9 Class.forName("csql.jdbc.JdbcSqlDriver");
10 Connection con = DriverManager.getConnection("jdbc:sql://localhost:4567", "root", "manager");
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);