This commit is contained in:
Looly
2022-04-28 03:20:23 +08:00
parent 17cd183722
commit 8e2c06c671
96 changed files with 175 additions and 167 deletions

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -12,7 +12,7 @@ import java.sql.SQLException;
/**
* Oracle操作单元测试
*
*
* @author looly
*
*/

View File

@@ -9,12 +9,12 @@ import cn.hutool.core.lang.Console;
/**
* SQL Server操作单元测试
*
*
* @author looly
*
*/
public class SqlServerTest {
@Test
@Ignore
public void createTableTest() throws SQLException {