mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add util
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package cn.hutool.core.lang.func;
|
||||
|
||||
import lombok.Data;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class LambdaUtilTest {
|
||||
|
||||
@Test
|
||||
public void getMethodNameTest(){
|
||||
String methodName = LambdaUtil.getMethodName(MyTeacher::getAge);
|
||||
Assert.assertEquals("getAge", methodName);
|
||||
}
|
||||
|
||||
@Data
|
||||
static class MyTeacher{
|
||||
public String age;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user