This commit is contained in:
Looly
2021-04-11 01:26:36 +08:00
parent 155dce6f3a
commit 3a105e0334
15 changed files with 443 additions and 302 deletions

View File

@@ -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;
}
}