assertEquals(distinctPorts.size(), map.keySet().size());
}
@Test
public void test() throws ClassNotFoundException, SQLException, IOException, InterruptedException {
EmbeddedMySQL mysql = new EmbeddedMySQL();
mysql.start(true);
Connection conn = null;
try {
MySQLManager manager = new MySQLManager(mysql);
conn = manager.getJdbcManager().getConnectionFromPool();
insertData(conn);
List<?> l = new QueryUtil(conn).executeQuery("SELECT * FROM test_table LIMIT 10;");
assertEquals(10, l.size());
} finally {
if(conn != null) {
conn.close();
}
mysql.stop();
}
}