mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-07 17:28:03 +08:00
Fix tests
This commit is contained in:
parent
c3f2b6a7e6
commit
f188d965a4
@ -1,17 +1,20 @@
|
||||
package test.java.main.java.com.djrapitops.plan.utilities;
|
||||
|
||||
import java.util.Date;
|
||||
import main.java.com.djrapitops.plan.utilities.FormatUtils;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import static org.junit.Assert.*;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.powermock.core.classloader.annotations.PrepareForTest;
|
||||
import org.powermock.modules.junit4.PowerMockRunner;
|
||||
import test.java.utils.*;
|
||||
import test.java.utils.MockUtils;
|
||||
import test.java.utils.TestInit;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -65,7 +68,7 @@ public class FormatUtilsTest {
|
||||
@Test
|
||||
public void testFormatTimeStamp() {
|
||||
long epochZero = 0L;
|
||||
String expResult = "Jan 01, 02:00";
|
||||
String expResult = "Jan 01, 01:00";
|
||||
String result = FormatUtils.formatTimeStamp(epochZero);
|
||||
assertEquals(expResult, result);
|
||||
}
|
||||
@ -76,7 +79,7 @@ public class FormatUtilsTest {
|
||||
@Test
|
||||
public void testFormatTimeStampYear() {
|
||||
long epochZero = 0L;
|
||||
String expResult = "Jan 01 1970, 02:00";
|
||||
String expResult = "Jan 01 1970, 01:00";
|
||||
String result = FormatUtils.formatTimeStampYear(epochZero);
|
||||
assertEquals(expResult, result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user