mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
test: add LambdaUtilTest
This commit is contained in:
parent
357e91db58
commit
daa450b980
@ -0,0 +1,15 @@
|
||||
package com.mybatisflex.coretest;
|
||||
|
||||
import com.mybatisflex.core.util.LambdaUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class LambdaUtilTest {
|
||||
|
||||
@Test
|
||||
public void testGetFieldName() {
|
||||
String fieldName = LambdaUtil.getFieldName(Account::getAge);
|
||||
Assert.assertEquals(fieldName, "age");
|
||||
System.out.println(fieldName);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user