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