mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestDateTimeConverterUtil.java
@Test
    public void testRoundToEndOfSecond()
    {
        //Verify rounding a second to last millisecond.
        Date initialDate = new Date(3421L);
        Date roundedDate = DateTimeConverterUtil.roundToEndOfSecond(initialDate);
        assertThat(roundedDate.getTime(), is(3999L));
        
        initialDate = new Date(3500L);
        roundedDate = DateTimeConverterUtil.roundToEndOfSecond(initialDate);
        assertThat(roundedDate.getTime(), is(3999L));
        
        initialDate = new Date(3999L);
        roundedDate = DateTimeConverterUtil.roundToEndOfSecond(initialDate);
        assertThat(roundedDate.getTime(), is(3999L));
    }
/**
     * Verify that the date is rounded to last millisecond of the second.
     */
Verify that the date is rounded to last millisecond of the second.
Verify that the date is rounded to last millisecond of the second .
@Test
    public void testRoundToEndOfSecond()
    {
        Date initialDate = new Date(3421L);
        Date roundedDate = DateTimeConverterUtil.roundToEndOfSecond(initialDate);
        assertThat(roundedDate.getTime(), is(3999L));
        initialDate = new Date(3500L);
        roundedDate = DateTimeConverterUtil.roundToEndOfSecond(initialDate);
        assertThat(roundedDate.getTime(), is(3999L));
        initialDate = new Date(3999L);
        roundedDate = DateTimeConverterUtil.roundToEndOfSecond(initialDate);
        assertThat(roundedDate.getTime(), is(3999L));
    }
@ Test public void testRoundToEndOfSecond ( ) { Date initialDate = new Date ( 3421L ) ; Date roundedDate = DateTimeConverterUtil . roundToEndOfSecond ( initialDate ) ; assertThat ( roundedDate . getTime ( ) , is ( 3999L ) ) ; initialDate = new Date ( 3500L ) ; roundedDate = DateTimeConverterUtil . roundToEndOfSecond ( initialDate ) ; assertThat ( roundedDate . getTime ( ) , is ( 3999L ) ) ; initialDate = new Date ( 3999L ) ; roundedDate = DateTimeConverterUtil . roundToEndOfSecond ( initialDate ) ; assertThat ( roundedDate . getTime ( ) , is ( 3999L ) ) ; }
Verify that the date is rounded to last millisecond of the second.
Verify that the date is rounded to last millisecond of the second .
//Verify rounding a second to last millisecond.