mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -31,4 +31,12 @@ public class ZodiacTest {
|
||||
Assertions.assertNull(Zodiac.getChineseZodiac(1899));
|
||||
Assertions.assertNull(Zodiac.getChineseZodiac((Calendar) null));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getZodiacOutOfRangeTest() {
|
||||
// https://github.com/dromara/hutool/issues/3036
|
||||
Assertions.assertThrows(IllegalArgumentException.class, ()->{
|
||||
DateUtil.getZodiac(Month.UNDECIMBER.getValue(), 10);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user