test: add LambdaUtilTest

This commit is contained in:
Michael Yang 2024-04-10 09:31:29 +08:00
parent 357e91db58
commit daa450b980

View File

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