mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-08-21 20:22:45 +02:00
[Test] Removed FormattersTest (obsolete)
This commit is contained in:
parent
7e89a24706
commit
76df161fc7
|
@ -1,41 +0,0 @@
|
|||
package com.djrapitops.plan.data.store.mutators;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
import utilities.mocks.SystemMockUtil;
|
||||
|
||||
/**
|
||||
* Test for the Formatters class.
|
||||
*
|
||||
* @author Rsl1122
|
||||
*/
|
||||
public class FormattersTest {
|
||||
@ClassRule
|
||||
public static TemporaryFolder temporaryFolder = new TemporaryFolder();
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws Exception {
|
||||
SystemMockUtil.setUp(temporaryFolder.getRoot())
|
||||
.enableConfigSystem();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Missing Formatter")
|
||||
public void formatTimeAmount() {
|
||||
// String expResult = "1s";
|
||||
// String result = timeAmountFormatter.apply(TimeAmount.SECOND.ms());
|
||||
//
|
||||
// assertEquals(expResult, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Missing Formatter")
|
||||
public void formatTimeAmountMonths() {
|
||||
// long time = TimeAmount.DAY.ms() * 40L;
|
||||
// assertEquals("1 month, 10d ", timeAmountFormatter.apply(time));
|
||||
}
|
||||
|
||||
}
|
|
@ -106,7 +106,7 @@ public class TPSMutatorTest {
|
|||
long periodLength = TimeUnit.MINUTES.toMillis(5L);
|
||||
long expected = TimeAmount.MONTH.toMillis(1L) - periodLength;
|
||||
|
||||
List<TPS> randomOrder = testData;
|
||||
List<TPS> randomOrder = new ArrayList<>(testData);
|
||||
Collections.shuffle(randomOrder);
|
||||
long monthAgo = time - TimeAmount.MONTH.toMillis(1L);
|
||||
TPSMutator tpsMutator = new TPSMutator(randomOrder.stream()
|
||||
|
|
Loading…
Reference in New Issue
Block a user