@@ -0,0 +1,1124 @@
+package de.majchrowski.jdev.db;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.DriverManager;%0Aimport java.sql.ResultSet;%0Aimport java.sql.SQLException;%0Aimport java.sql.Statement;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class MySQLConnectionTest extends TestCase %7B%0A%0A    public void testConnect() %7B%0A    String dbUrl = %22jdbc:mysql://localhost/mydatabase%22;%0A    String dbClass = %22com.mysql.jdbc.Driver%22;%0A    String query = %22Select distinct(table_name) from INFORMATION_SCHEMA.TABLES%22;%0A    String username = %22root%22;%0A    String password = %22%22;%0A    try %7B%0A%0A        Class.forName(dbClass);%0A        Connection connection = DriverManager.getConnection(dbUrl,%0A            username, password);%0A        Statement statement = connection.createStatement();%0A        ResultSet resultSet = statement.executeQuery(query);%0A        while (resultSet.next()) %7B%0A        String tableName = resultSet.getString(1);%0A        System.out.println(%22Table name : %22 + tableName);%0A        %7D%0A        connection.close();%0A    %7D catch (ClassNotFoundException e) %7B%0A        e.printStackTrace();%0A    %7D catch (SQLException e) %7B%0A        e.printStackTrace();%0A    %7D%0A    %7D%0A%7D%0A

add connection test