forked from plusone/plusone-commons
修改测试用例。
parent
cdf9a65121
commit
56217b633f
|
@ -2,7 +2,7 @@ package xyz.zhouxy.plusone.commons.util;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||||
import static xyz.zhouxy.plusone.commons.jdbc.JdbcSql.NOT_IN;
|
import static xyz.zhouxy.plusone.commons.jdbc.JdbcSql.IN;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
@ -53,7 +53,7 @@ class SimpleJdbcTemplateTests {
|
||||||
String sql = SQL.newJdbcSql()
|
String sql = SQL.newJdbcSql()
|
||||||
.SELECT("*")
|
.SELECT("*")
|
||||||
.FROM("test_table")
|
.FROM("test_table")
|
||||||
.WHERE(NOT_IN("id", params))
|
.WHERE(IN("id", params))
|
||||||
.toString();
|
.toString();
|
||||||
log.info(sql);
|
log.info(sql);
|
||||||
List<DbRecord> rs = SimpleJdbcTemplate.connect(conn)
|
List<DbRecord> rs = SimpleJdbcTemplate.connect(conn)
|
||||||
|
|
Loading…
Reference in New Issue