This commit is contained in:
Looly
2022-05-01 00:02:15 +08:00
parent 4613d47c84
commit 514bb54ea5
3 changed files with 4 additions and 22 deletions

View File

@@ -41,15 +41,6 @@ public class DbTest {
Assert.assertEquals(1, page1.size());
}
@Test
public void pageTest2() {
final long count = Db.of().count(Entity.create("user"), Page.of(1, 3));
Assert.assertEquals(1, count);
final List<Entity> page1 = Db.of().page(Entity.create("user"), Page.of(1, 3));
Assert.assertEquals(1, page1.size());
}
@Test
public void pageBySqlTest() {
final String sql = "select * from user order by name";