[Test] Removed FormattersTest (obsolete)

This commit is contained in:
Rsl1122 2018-10-13 10:23:24 +03:00
parent 7e89a24706
commit 76df161fc7
2 changed files with 1 additions and 42 deletions

View File

@ -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));
}
}

View File

@ -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()