mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add test
This commit is contained in:
parent
3e6d318681
commit
1af2366c2e
@ -123,12 +123,6 @@
|
|||||||
<version>${hsqldb.version}</version>
|
<version>${hsqldb.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.zenframework.z8.dependencies.commons</groupId>
|
|
||||||
<artifactId>ojdbc6</artifactId>
|
|
||||||
<version>2.0</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.mysql</groupId>
|
<groupId>com.mysql</groupId>
|
||||||
<artifactId>mysql-connector-j</artifactId>
|
<artifactId>mysql-connector-j</artifactId>
|
||||||
@ -156,7 +150,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.oracle.database.jdbc</groupId>
|
<groupId>com.oracle.database.jdbc</groupId>
|
||||||
<artifactId>ojdbc8</artifactId>
|
<artifactId>ojdbc8</artifactId>
|
||||||
<version>23.3.0.23.09</version>
|
<version>21.13.0.0</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
package org.dromara.hutool.db;
|
package org.dromara.hutool.db;
|
||||||
|
|
||||||
|
import org.dromara.hutool.core.lang.Console;
|
||||||
|
import org.dromara.hutool.db.ds.DSUtil;
|
||||||
|
import org.dromara.hutool.db.ds.DSWrapper;
|
||||||
|
import org.dromara.hutool.db.meta.MetaUtil;
|
||||||
|
import org.dromara.hutool.db.meta.Table;
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
@ -8,5 +13,10 @@ public class IssueI9BANETest {
|
|||||||
@Disabled
|
@Disabled
|
||||||
void metaTest() {
|
void metaTest() {
|
||||||
final Db db = Db.of("orcl");
|
final Db db = Db.of("orcl");
|
||||||
|
db.find(Entity.of("\"1234\""));
|
||||||
|
|
||||||
|
final DSWrapper ds = DSUtil.getDS("orcl");
|
||||||
|
final Table tableMeta = MetaUtil.getTableMeta(ds, null, null, "\"1234\"");
|
||||||
|
Console.log(tableMeta.getIndexInfoList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user