No matching tests found in any candidate test task.
Requested tests:
Test pattern sqlTest.dataBase.DataSourseTest in task :test
код
package sqlTest.dataBase;
import org.junit.Test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.*;
public class DataSourseTest {
@Test
public void main() throws SQLException {
String url = "jbdc:mysql://10.63.2.143:4306/";
String username = "";
String password = "";
try (Connection conn = DriverManager.getConnection(url, username, password)) {
Class.forName("com.mysql.jdbc.Driver");
System.out.println("yra");
Statement statement = conn.createStatement();
PreparedStatement stmt;
ResultSet rs = statement.executeQuery("select to_account_id * from task * where task_type_id = 1 * order by date_create * LIMIT = 1");
while (rs.next()){
System.out.println(rs.getString("to_account_id"));
}
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}
}