adding test scripts
[csql.git] / test / jdbc / Connection / ConnTest13.java
blobe39a9b8b8782385432055858e03ce7ce8c59d89b
1 //Try to connect with connectstring "jdbc:csql" and give correct "user" and incorrect "password" in properties object. It should fail.
2 //Author: XieLiang
3 import java.sql.*;
4 public class ConnTest13
6 public static void main(String[] args)
8 try
10 Class.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con = DriverManager.getConnection("jdbc:csql", "root", "wrongpasswdtestxieliang");
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);