mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 14:58:26 +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 periodLength = TimeUnit.MINUTES.toMillis(5L);
|
||||||
long expected = TimeAmount.MONTH.toMillis(1L) - periodLength;
|
long expected = TimeAmount.MONTH.toMillis(1L) - periodLength;
|
||||||
|
|
||||||
List<TPS> randomOrder = testData;
|
List<TPS> randomOrder = new ArrayList<>(testData);
|
||||||
Collections.shuffle(randomOrder);
|
Collections.shuffle(randomOrder);
|
||||||
long monthAgo = time - TimeAmount.MONTH.toMillis(1L);
|
long monthAgo = time - TimeAmount.MONTH.toMillis(1L);
|
||||||
TPSMutator tpsMutator = new TPSMutator(randomOrder.stream()
|
TPSMutator tpsMutator = new TPSMutator(randomOrder.stream()
|
||||||
|
Loading…
Reference in New Issue
Block a user