From 0e96df3cba68e604ebc608fc016e43bb7ab2529a Mon Sep 17 00:00:00 2001 From: TacoTheDank Date: Sun, 15 May 2022 15:02:21 -0400 Subject: Move test mp3s to androidTest directory --- .../antennapod/service/playback/PlaybackServiceMediaPlayerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/androidTest/java/de/test/antennapod/service') diff --git a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java index e115bc34e..aa2f1cf98 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java @@ -85,7 +85,7 @@ public class PlaybackServiceMediaPlayerTest { assertTrue(cacheDir.canWrite()); assertTrue(cacheDir.canRead()); if (!dest.exists()) { - InputStream i = getInstrumentation().getTargetContext().getAssets().open("3sec.mp3"); + InputStream i = getInstrumentation().getContext().getAssets().open("3sec.mp3"); OutputStream o = new FileOutputStream(new File(cacheDir, PLAYABLE_DEST_URL)); IOUtils.copy(i, o); o.flush(); -- cgit v1.2.3