Skip to content

Commit

Permalink
完善测试,不输出信息,避免刷屏
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed May 20, 2024
1 parent 0da0d50 commit 172204f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/io/mybatis/mapper/fn/FnTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public void testMemoryOverflow() throws InterruptedException {
int columnSize = Fn.FN_COLUMN_MAP.size();
int fieldSize = Fn.FN_CLASS_FIELD_MAP.size();
for (int i = 0; i < 100; i++) {
System.out.println(((Fn<User, Object>) User::getUserName).toColumn());
((Fn<User, Object>) User::getUserName).toColumn();
Assert.assertEquals(columnSize + 1, Fn.FN_COLUMN_MAP.size());
Assert.assertEquals(fieldSize + 1, Fn.FN_CLASS_FIELD_MAP.size());
}
for (int i = 0; i < 100; i++) {
System.out.println(Fn.field(User.class, "userName").toColumn());
Fn.field(User.class, "userName").toColumn();
Assert.assertEquals(columnSize + 2, Fn.FN_COLUMN_MAP.size());
Assert.assertEquals(fieldSize + 2, Fn.FN_CLASS_FIELD_MAP.size());
}
Expand Down

0 comments on commit 172204f

Please sign in to comment.