adding test scripts
[csql.git] / test / sqlnetwork / Jdbcnetwork / ConnTest4.java
blob43bf218bac8db91cbf0aee3272eeb3b428ba1844
1 //Connect with connect string "jdbc:sql://localhost:5678/csql" and give correct "user" and "password" in properties object. It should fail.
3 import java.sql.*;
4 public class ConnTest4
6 public static void main(String[] args)
8 try
10 Class.forName("csql.jdbc.JdbcSqlDriver");
11 Connection con = DriverManager.getConnection("jdbc:sql://localhost:5678/csql", "root", "manager");
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);