mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix Page bug
This commit is contained in:
17
hutool-db/src/test/java/cn/hutool/db/PageTest.java
Normal file
17
hutool-db/src/test/java/cn/hutool/db/PageTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package cn.hutool.db;
|
||||
|
||||
import cn.hutool.db.sql.Order;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class PageTest {
|
||||
|
||||
@Test
|
||||
public void addOrderTest() {
|
||||
Page page = new Page();
|
||||
page.addOrder(new Order("aaa"));
|
||||
Assert.assertEquals(page.getOrders().length, 1);
|
||||
page.addOrder(new Order("aaa"));
|
||||
Assert.assertEquals(page.getOrders().length, 2);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user