()
| 130 | } |
| 131 | |
| 132 | @Test |
| 133 | public void testRemove() { |
| 134 | // 设置默认的节假日名称 |
| 135 | HolidayUtil.fix(HolidayUtil.NAMES, null); |
| 136 | Holiday holiday = HolidayUtil.getHoliday(2010,1,1); |
| 137 | Assert.assertNotNull(holiday); |
| 138 | Assert.assertEquals("元旦节",holiday.getName()); |
| 139 | |
| 140 | HolidayUtil.fix("20100101~000000000000000000000000000"); |
| 141 | holiday = HolidayUtil.getHoliday(2010,1,1); |
| 142 | Assert.assertNull(holiday); |
| 143 | } |
| 144 | } |
nothing calls this directly
no test coverage detected