mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
test: 添加 Assert 断言。
This commit is contained in:
parent
e2317d525a
commit
eccc24a4f9
@ -19,8 +19,8 @@ package com.mybatisflex.test;
|
|||||||
import com.mybatisflex.core.MybatisFlexBootstrap;
|
import com.mybatisflex.core.MybatisFlexBootstrap;
|
||||||
import com.mybatisflex.core.row.Db;
|
import com.mybatisflex.core.row.Db;
|
||||||
import com.mybatisflex.core.row.Row;
|
import com.mybatisflex.core.row.Row;
|
||||||
import com.mybatisflex.core.row.RowUtil;
|
|
||||||
import org.apache.ibatis.session.Configuration;
|
import org.apache.ibatis.session.Configuration;
|
||||||
|
import org.junit.Assert;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
|
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
|
||||||
@ -64,7 +64,10 @@ public class DbTest {
|
|||||||
@Test
|
@Test
|
||||||
public void test01() {
|
public void test01() {
|
||||||
List<Row> rows = Db.selectAll(tb_account);
|
List<Row> rows = Db.selectAll(tb_account);
|
||||||
RowUtil.printPretty(rows);
|
|
||||||
|
rows.stream()
|
||||||
|
.map(row -> row.get("OPTIONS"))
|
||||||
|
.forEach(Assert::assertNull);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user