summaryrefslogtreecommitdiff
path: root/core/src/test/java
diff options
context:
space:
mode:
authororionlee <orionlee@yahoo.com>2018-11-14 14:14:15 -0800
committerorionlee <orionlee@yahoo.com>2019-01-04 10:33:26 -0800
commitd1c73dda5b5e7d9346c24d323461810bac18499e (patch)
tree2e6dd62af5126cf65f6fb0031bdddb66b9c1331d /core/src/test/java
parent566a682122a8438a656b72ec603e6ddaae90727c (diff)
downloadAntennaPod-d1c73dda5b5e7d9346c24d323461810bac18499e.zip
episode cleanup 12 hour option - use hours internally part 2 (persisted shared preference)
requires data migartion: app versionCode increased to 1070196
Diffstat (limited to 'core/src/test/java')
-rw-r--r--core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java
index dc4054af8..9f354c7c2 100644
--- a/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java
+++ b/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java
@@ -11,7 +11,7 @@ public class APCleanupAlgorithmTest {
@Test
public void testCalcMostRecentDateForDeletion() throws Exception {
- APCleanupAlgorithm algo = new APCleanupAlgorithm(1.0f);
+ APCleanupAlgorithm algo = new APCleanupAlgorithm(24);
Date curDateForTest = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").parse("2018-11-13T14:08:56-0800");
Date resExpected = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").parse("2018-11-12T14:08:56-0800");
Date resActual = algo.calcMostRecentDateForDeletion(curDateForTest);