When the method being tested contains the called method method labeled "@Test", it will be reported no tests found matching ...
From [email protected] Error, remove the "@Test" of the method being called.
@Test
public void Testsatement () {
connection connection=null;
statement Statement=null;
resultset Resultset=null;
try {
//1. Get database Connection
connection=getconnection ();
   //2. Call the Createstatement () method of the Connection object to get the statement object
statement= Connection.createstatement ();
   //3. Prepare SQL statement
string sql= "Update customers set Name= ' Jerry ' where id=6 ';
   //4. Send SQL statement: executeupdate (SQL) method to invoke statement object
Statement.executeupdate (SQL);
} catch (Exception e) {
e.printstacktrace ();
}finally{
   //5. Close the database resource: off-the-outside
releasedb (ResultSet, statement, connection);
}
For example, the above test must ensure that the method getconnection () and Releasedb (ResultSet, statement, connection) should not "@Test", responsible for reporting the above error
Note: JUNIT4----junit_4.12.0.v201504281640
JDBC: About JUnit Test no tests found matching