adding test scripts
[csql.git] / test / sqlnetwork / Jdbcnetwork / ConnTest11.java
blob30a2266ed9da9c8e4114c23c0c4fa77632431056
1 // Connect with "jdbc:csql://localhost:5678" and give correct "user" and "password" in properties object. It should pass as for csql default database is csql
2 import java.sql.*;
3 public class ConnTest11
5 public static void main(String[] args)
7 try
9 Class.forName("csql.jdbc.JdbcSqlDriver");
10 Connection con = DriverManager.getConnection("jdbc:csql://localhost:5678", "root", "manager");
11 if (con == null) System.exit(1);
12 con.close();
13 }catch(Exception e) {
14 System.out.println("Exception in Test: "+e.getMessage());
15 e.getStackTrace();
16 System.exit (1);