@author
5455565758596061
} @Test public void testMomentsAgo() throws Exception { PrettyTime t = new PrettyTime(new Date(6000), locale); assertEquals("hetk tagasi", t.format(new Date(0))); }
6162636465666768
} @Test public void testMilliSecondsFromNow() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(0), locale); assertEquals("13 millisekundi pärast", t.format(new Date(13))); }
6869707172737475
} @Test public void testMilliSecondsAgo() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(13), locale); assertEquals("13 millisekundit tagasi", t.format(new Date(0))); }
7576777879808182
} @Test public void testMilliSecondFromNow() throws Exception { PrettyTime t = newPrettyTimeWOJustNow(new Date(0), locale); assertEquals("millisekundi pärast", t.format(new Date(1))); }
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))); }