mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
修复isXXX转换时的匹配问题
This commit is contained in:
@@ -248,8 +248,10 @@ public class BeanUtilTest {
|
||||
|
||||
final SubPersonWithAlias subPersonWithAlias = BeanUtil.toBean(map, SubPersonWithAlias.class);
|
||||
Assert.assertEquals("sub名字", subPersonWithAlias.getSubName());
|
||||
Assert.assertTrue(subPersonWithAlias.isBooleana());
|
||||
Assert.assertEquals(true, subPersonWithAlias.getBooleanb());
|
||||
|
||||
//https://gitee.com/dromara/hutool/issues/I6H0XF
|
||||
Assert.assertFalse(subPersonWithAlias.isBooleana());
|
||||
Assert.assertNull(subPersonWithAlias.getBooleanb());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user