This commit is contained in:
Looly
2023-05-26 23:16:41 +08:00
parent 443e821c2f
commit b5b237426f
2 changed files with 38 additions and 4 deletions

View File

@@ -12,15 +12,26 @@
package org.dromara.hutool.db;
import org.dromara.hutool.db.ds.DSUtil;
import org.junit.jupiter.api.Disabled;
import lombok.Data;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.List;
public class IssueI73770Test {
@Test
@Disabled
void pageTest() {
DSUtil.getDS("mysql");
final List<User> result = Db.of()
.pageForBeanList("select * from user where id = ?"
, new Page(0, 10), User.class, 9);
Assertions.assertEquals(1, result.size());
Assertions.assertEquals(9, result.get(0).getId());
}
@Data
static class User{
private Integer id;
private String name;
}
}