mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
Fix flaky test in EnumUtilTest
This commit is contained in:
parent
c1642522bb
commit
7eaa48dd02
@ -30,7 +30,8 @@ public class EnumUtilTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getFieldNamesTest() {
|
public void getFieldNamesTest() {
|
||||||
List<String> names = EnumUtil.getFieldNames(TestEnum.class);
|
List<String> names = EnumUtil.getFieldNames(TestEnum.class);
|
||||||
Assert.assertEquals(CollUtil.newArrayList("type", "name"), names);
|
Assert.assertTrue(names.contains("type"));
|
||||||
|
Assert.assertTrue(names.contains("name"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user