mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix test
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
package org.dromara.hutool.db.driver;
|
package org.dromara.hutool.db.driver;
|
||||||
|
|
||||||
import org.dromara.hutool.core.util.RandomUtil;
|
import org.dromara.hutool.core.util.RandomUtil;
|
||||||
import org.dromara.hutool.db.driver.DriverUtil;
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
@@ -25,7 +24,7 @@ public class DriverUtilTest {
|
|||||||
@Test
|
@Test
|
||||||
public void identifyH2DriverTest(){
|
public void identifyH2DriverTest(){
|
||||||
final String url = "jdbc:h2:file:./db/test;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL";
|
final String url = "jdbc:h2:file:./db/test;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL";
|
||||||
final String driver = DriverUtil.identifyDriver(url); // driver 返回 mysql 的 driver
|
final String driver = DriverUtil.identifyDriver(url); // driver 返回 h2 的 driver
|
||||||
Assertions.assertEquals("org.h2.Driver", driver);
|
Assertions.assertEquals("org.h2.Driver", driver);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user