package org.drizzle.jdbc;

import org.junit.After;
import org.junit.Test;

import java.sql.SQLException;
import java.sql.DriverManager;
import java.sql.Statement;
import java.sql.Connection;

import static junit.framework.Assert.assertTrue;

/**
 * Created by IntelliJ IDEA.
 * User: marcuse
 * Date: Jun 13, 2009
 * Time: 1:29:33 PM
 * To change this template use File | Settings | File Templates.
 */
public class MySQLDriverTest extends DriverTest {
    private Connection connection;
    public MySQLDriverTest() throws SQLException {
        connection = DriverManager.getConnection("jdbc:mysql:thin://localhost:3306/test_units_jdbc");
    }
    @Override
    public Connection getConnection() {
        return connection;
    }
}

@@ -41,22 +41,22 @@
 nit.
-After;
+Test;%0A
 %0Aimport 
 org.
@@ -51,33 +51,36 @@
 %0Aimport 
-org.junit.Tes
+java.sql.ResultSe
 t;%0A
-%0A
 import j
@@ -192,58 +192,8 @@
 n;%0A%0A
-import static junit.framework.Assert.assertTrue;%0A%0A
 /**%0A
@@ -680,10 +680,382 @@
 ;%0A    %7D%0A
+    %0A    @Test%0A    public void testAuthConnection() throws SQLException %7B%0A        Connection conn = DriverManager.getConnection(%22jdbc:mysql:thin://test:test@localhost:3306/test_units_jdbc%22);%0A        Statement stmt = conn.createStatement();%0A        ResultSet rs = stmt.executeQuery(%22select * from t1%22);%0A        rs.close();%0A        stmt.close();%0A        conn.close();%0A    %7D%0A
 %7D%0A

add an authenticated connection to mysql