@author
8283848586878889
} @Test public void testMilliSecondAgo() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(1), locale); assertEquals("millisekund tagasi", t.format(new Date(0))); }
8990919293949596
} @Test public void testSecondsFromNow() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(0), locale); assertEquals("13 sekundi pärast", t.format(new Date(1000 * 13))); }
96979899100101102103
} @Test public void testSecondsAgo() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(1000 * 13), locale); assertEquals("13 sekundit tagasi", t.format(new Date(0))); }
103104105106107108109110
} @Test public void testSecondFromNow() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(0), locale); assertEquals("sekundi pärast", t.format(new Date(1000 * 1))); }
110111112113114115116117
} @Test public void testSecondAgo() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(1000 * 1), locale); assertEquals("sekund tagasi", t.format(new Date(0))); }
117118119120121122123124
} @Test public void testMinutesFromNow() throws Exception { PrettyTime t = new PrettyTime(new Date(0), locale); assertEquals("13 minuti pärast", t.format(new Date(1000 * 60 * 13))); }
124125126127128129130131
} @Test public void testMinutesAgo() throws Exception { PrettyTime t = new PrettyTime(new Date(1000 * 60 * 13), locale); assertEquals("13 minutit tagasi", t.format(new Date(0))); }
131132133134135136137138
} @Test public void testMinuteFromNow() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(0), locale); assertEquals("minuti pärast", t.format(new Date(1000 * 60 * 1))); }
138139140141142143144145
} @Test public void testMinuteAgo() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(1000 * 60 * 1), locale); assertEquals("minut tagasi", t.format(new Date(0))); }
145146147148149150151152
} @Test public void testHoursFromNow() throws Exception { PrettyTime t = new PrettyTime(new Date(0), locale); assertEquals("3 tunni pärast", t.format(new Date(1000 * 60 * 60 * 3))); }