1 //Open the connection and then call isClosed(). It should return false.
2 //Close the connection and then call isClosed(). It should return true.
4 public class ConnTest20
6 public static void main(String
[] args
)
10 Class
.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con
= DriverManager
.getConnection("jdbc:csql://localhost:5678", "root", "manager");
14 if(con
.isClosed()) System
.exit(1);
16 if(!con
.isClosed()) System
.exit(1);
18 System
.out
.println(e
.getMessage());