コード例 #1
0
 public void testZeroTimePart1() throws Exception {
   final Date date = new Date();
   assertFalse(date.equals(TimeUtil.zeroTimePart(date)));
 }
コード例 #2
0
 public void testZeroTimePart() throws Exception {
   String date = "Nov 05, 2015";
   String time = "5:22:33 PM";
   assertTrue("Nov 05, 2015 12:00:00 AM".equals(TimeUtil.zeroTimePart(date + " " + time)));
 }