@@ -0,0 +1,998 @@
+package org.febit.lang;%0A%0Aimport java.util.Calendar;%0Aimport static org.testng.Assert.*;%0Aimport org.testng.annotations.Test;%0A%0A/**%0A *%0A * @author zqq90%0A */%0Apublic class TimeTest %7B%0A%0A    @Test%0A    public void test() %7B%0A        long millis = System.currentTimeMillis();%0A        Time time = new Time(millis);%0A        Calendar calendar = Calendar.getInstance();%0A        calendar.setTimeInMillis(millis);%0A%0A        assertEquals(time.year, calendar.get(Calendar.YEAR));%0A        assertEquals(time.month, calendar.get(Calendar.MONTH) + 1); //%5B1-12%5D JANUARY - DECEMBER%0A        assertEquals(time.day, calendar.get(Calendar.DAY_OF_MONTH)); //%5B1-31%5D%0A        assertEquals(time.hour, calendar.get(Calendar.HOUR_OF_DAY));%0A        assertEquals(time.minute, calendar.get(Calendar.MINUTE));%0A        int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK) - 1;%0A        if (dayOfWeek == 0) %7B%0A            dayOfWeek = 7;%0A        %7D%0A        assertEquals(time.dayOfWeek, dayOfWeek); //  1 (Monday), ... 6(SATURDAY), 7(Sunday),%0A    %7D%0A%7D%0A

test case