mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Fix flaky test in EnumUtilTest
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user