{
TestUtil.loadDriver();
String frameworkURL = TestUtil.getJdbcUrlPrefix() + "testpropdb;create=true";
// Test that we loaded the right driver by making a connection
Driver driver = DriverManager.getDriver(frameworkURL);
Properties props = new Properties();
props.put("user","testuser");
props.put("password","testpass");
Connection conn = DriverManager.getConnection(frameworkURL, props);
DatabaseMetaData dbmd = conn.getMetaData();
System.out.println("jdbcCompliant() = " + driver.jdbcCompliant());
// Just check versions against database metadata to avoid more master updates.
// Metadata test prints the actual version.
int majorVersion = driver.getMajorVersion();
if (majorVersion == dbmd.getDriverMajorVersion())
System.out.println("driver.getMajorVersion() = EXPECTED VERSION");
else
new Exception("FAILED: unexpected value for getMajorVersion(): " +
majorVersion).printStackTrace();
int minorVersion = driver.getMinorVersion();
if (minorVersion == dbmd.getDriverMinorVersion())
System.out.println("driver.getMinorVersion() = EXPECTED VERSION");
else
new Exception("FAILED: unexpected value for getMinorVersion()" +
minorVersion).printStackTrace(System.out);