mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
Switch to the new I18n class and format cleanup of all classes
This commit is contained in:
parent
19f5a2340d
commit
220d68f375
207 changed files with 1247 additions and 1306 deletions
|
@ -30,16 +30,17 @@ public class UtilTest extends TestCase
|
|||
{
|
||||
fail("IOException");
|
||||
}
|
||||
Util.updateLocale("en_US", ess);
|
||||
}
|
||||
|
||||
public void testFDDnow() {
|
||||
}
|
||||
|
||||
public void testFDDnow()
|
||||
{
|
||||
Calendar c = new GregorianCalendar();
|
||||
String resp = Util.formatDateDiff(c, c);
|
||||
assertEquals(resp, "now");
|
||||
}
|
||||
|
||||
public void testFDDfuture() {
|
||||
|
||||
public void testFDDfuture()
|
||||
{
|
||||
Calendar a, b;
|
||||
a = new GregorianCalendar(2010, 1, 1, 10, 0, 0);
|
||||
b = new GregorianCalendar(2010, 1, 1, 10, 0, 1);
|
||||
|
@ -105,8 +106,9 @@ public class UtilTest extends TestCase
|
|||
b = new GregorianCalendar(2011, 4, 31, 10, 5, 0);
|
||||
assertEquals(" 5 minutes", Util.formatDateDiff(a, b));
|
||||
}
|
||||
|
||||
public void testFDDpast() {
|
||||
|
||||
public void testFDDpast()
|
||||
{
|
||||
Calendar a, b;
|
||||
a = new GregorianCalendar(2010, 1, 1, 10, 0, 0);
|
||||
b = new GregorianCalendar(2010, 1, 1, 9, 59, 59);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue