This commit is contained in:
Looly
2023-03-15 03:07:19 +08:00
parent b2235e4520
commit 48fdda9faf
16 changed files with 520 additions and 462 deletions

View File

@@ -34,7 +34,8 @@ public class DbTest {
@Test
public void pageTest() {
// 测试数据库中一共4条数据第0页有3条第1页有1条
final List<Entity> page0 = Db.of().page(Entity.of("user"), Page.of(0, 3));
final List<Entity> page0 = Db.of().page(Entity.of("user"),
Page.of(0, 3));
Assert.assertEquals(3, page0.size());
final List<Entity> page1 = Db.of().page(Entity.of("user"), Page.of(1, 3));