summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-01-31 21:48:39 +0100
committerGitHub <noreply@github.com>2024-01-31 21:48:39 +0100
commitf0e96a269233e85a452eabcbfe09899157024ab3 (patch)
tree0107b826403ebce478355cf073b1c968907a3d79
parent34fb2050b257d81438374bd39d4625be4b580325 (diff)
downloadAntennaPod-f0e96a269233e85a452eabcbfe09899157024ab3.zip
Remove unused test class (#6907)
-rw-r--r--app/src/androidTest/java/de/danoeh/antennapod/core/service/download/StubDownloader.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/app/src/androidTest/java/de/danoeh/antennapod/core/service/download/StubDownloader.java b/app/src/androidTest/java/de/danoeh/antennapod/core/service/download/StubDownloader.java
deleted file mode 100644
index 835af1f95..000000000
--- a/app/src/androidTest/java/de/danoeh/antennapod/core/service/download/StubDownloader.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package de.danoeh.antennapod.core.service.download;
-
-import androidx.annotation.NonNull;
-import androidx.core.util.Consumer;
-import de.danoeh.antennapod.model.download.DownloadResult;
-import de.danoeh.antennapod.net.download.serviceinterface.DownloadRequest;
-
-public class StubDownloader extends Downloader {
-
- private final long downloadTime;
-
- @NonNull
- private final Consumer<DownloadResult> onDownloadComplete;
-
- public StubDownloader(@NonNull DownloadRequest request, long downloadTime,
- @NonNull Consumer<DownloadResult> onDownloadComplete) {
- super(request);
- this.downloadTime = downloadTime;
- this.onDownloadComplete = onDownloadComplete;
- }
-
- @Override
- protected void download() {
- try {
- Thread.sleep(downloadTime);
- } catch (Throwable t) {
- t.printStackTrace();
- }
- onDownloadComplete.accept(result);
- }
-
- @NonNull
- @Override
- public DownloadRequest getDownloadRequest() {
- return super.getDownloadRequest();
- }
-
- @NonNull
- @Override
- public DownloadResult getResult() {
- return super.getResult();
- }
-
- @Override
- public boolean isFinished() {
- return super.isFinished();
- }
-
- @Override
- public void cancel() {
- super.cancel();
- result.setCancelled();
- }
-}