1 //Try to connect with connectstring "jdbc:csql" and give incorrect "user" and "password" in properties object. It should fail.
4 public class ConnTest12
6 public static void main(String
[] args
)
10 Class
.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con
= DriverManager
.getConnection("jdbc:csql", "wrongusertestxieliang", "manager");
12 if (con
!= null) System
.exit (1);
14 System
.out
.println("Exception in Test: "+e
.getMessage());