diff options
author | ByteHamster <info@bytehamster.com> | 2019-08-11 21:21:28 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-08-11 21:21:28 +0200 |
commit | c29b0ce8c760b75b4c61781acaf56542530ca3cc (patch) | |
tree | 56f8509d615bd11ed9fe90c188fd7f6e7415587e /app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java | |
parent | aca6e3e9e4a69cef4ad7032eb06d49f3c842408f (diff) | |
download | AntennaPod-c29b0ce8c760b75b4c61781acaf56542530ca3cc.zip |
Fixed app integration tests
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java b/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java index 263790c2f..20c54cb15 100644 --- a/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java +++ b/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java @@ -4,8 +4,6 @@ import android.content.Context; import android.graphics.Bitmap; import android.util.Log; -import junit.framework.Assert; - import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; @@ -30,6 +28,7 @@ import de.danoeh.antennapod.fragment.ExternalPlayerFragment; import de.test.antennapod.util.service.download.HTTPBin; import de.test.antennapod.util.syndication.feedgenerator.RSS2Generator; import org.greenrobot.eventbus.EventBus; +import org.junit.Assert; /** * Utility methods for UI tests. @@ -39,8 +38,6 @@ class UITestUtils { private static final String TAG = UITestUtils.class.getSimpleName(); - private static final String DATA_FOLDER = "test/UITestUtils"; - private static final int NUM_FEEDS = 5; private static final int NUM_ITEMS_PER_FEED = 10; @@ -61,7 +58,7 @@ class UITestUtils { public void setup() throws IOException { - destDir = context.getExternalFilesDir(DATA_FOLDER); + destDir = new File(context.getFilesDir(), "test/UITestUtils"); destDir.mkdir(); hostedFeedDir = new File(destDir, "hostedFeeds"); hostedFeedDir.mkdir(); |