public void testGetTimeOfDayBy0To23Hour() throws Exception { assertEquals(TimeUtil.TimeOfDay.AM, TimeUtil.getTimeOfDayBy0To23Hour(0)); assertEquals(TimeUtil.TimeOfDay.AM, TimeUtil.getTimeOfDayBy0To23Hour(8)); assertEquals(TimeUtil.TimeOfDay.PM, TimeUtil.getTimeOfDayBy0To23Hour(12)); assertEquals(TimeUtil.TimeOfDay.PM, TimeUtil.getTimeOfDayBy0To23Hour(20)); }
public void testGetTimeOfDayBy0To23Hour1() throws Exception { assertEquals(TimeUtil.TimeOfDay.AM, TimeUtil.getTimeOfDayBy0To23Hour("0")); assertEquals(TimeUtil.TimeOfDay.AM, TimeUtil.getTimeOfDayBy0To23Hour("8")); assertEquals(TimeUtil.TimeOfDay.PM, TimeUtil.getTimeOfDayBy0To23Hour("12")); assertEquals(TimeUtil.TimeOfDay.PM, TimeUtil.getTimeOfDayBy0To23Hour("20")); }