mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
修复EnumUtil空指针问题
This commit is contained in:
parent
fab02fc0b6
commit
8a88a9daa1
@ -17,7 +17,6 @@ public class IssueI9NSZ4Test {
|
||||
|
||||
@Test
|
||||
public void getByTest2() {
|
||||
// AnimalKindInZoo所有枚举结果的getMappedValue结果值中都无AnimalKind.DOG,返回null
|
||||
final AnimalKindInZoo by = EnumUtil.getBy(AnimalKindInZoo::getMappedValue, AnimalKind.BIRD);
|
||||
Assert.assertEquals(AnimalKindInZoo.BIRD, by);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user