mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add method
This commit is contained in:
@@ -12,6 +12,12 @@ public class LambdaUtilTest {
|
||||
Assert.assertEquals("getAge", methodName);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getFieldNameTest(){
|
||||
String fieldName = LambdaUtil.getFieldName(MyTeacher::getAge);
|
||||
Assert.assertEquals("age", fieldName);
|
||||
}
|
||||
|
||||
@Data
|
||||
static class MyTeacher{
|
||||
public String age;
|
||||
|
Reference in New Issue
Block a user