mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -13,20 +13,20 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* SqlRunner线程安全测试
|
||||
*
|
||||
*
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
@Ignore
|
||||
public class ConcurentTest {
|
||||
|
||||
|
||||
private Db db;
|
||||
|
||||
|
||||
@Before
|
||||
public void init() {
|
||||
db = Db.use("test");
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void findTest() {
|
||||
for(int i = 0; i < 10000; i++) {
|
||||
@@ -40,7 +40,7 @@ public class ConcurentTest {
|
||||
Console.log(find);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//主线程关闭会导致连接池销毁,sleep避免此情况引起的问题
|
||||
ThreadUtil.sleep(5000);
|
||||
}
|
||||
|
@@ -1,7 +1,6 @@
|
||||
package cn.hutool.db;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.ArrayUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Ignore;
|
||||
|
@@ -12,7 +12,7 @@ import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* Oracle操作单元测试
|
||||
*
|
||||
*
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
|
@@ -9,12 +9,12 @@ import cn.hutool.core.lang.Console;
|
||||
|
||||
/**
|
||||
* SQL Server操作单元测试
|
||||
*
|
||||
*
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
public class SqlServerTest {
|
||||
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void createTableTest() throws SQLException {
|
||||
|
Reference in New Issue
Block a user