From: masensio Date: Wed, 18 Dec 2013 08:39:32 +0000 (+0100) Subject: OC-2328: Add unit test: download a not existing file X-Git-Tag: oc-android-1.5.5~100^2~1 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/023f0edb40b344f0d0ade796ed49ea06202ba168 OC-2328: Add unit test: download a not existing file --- diff --git a/oc_framework-test-project/oc_framework-test-test/src/com/owncloud/android/oc_framework_test_project/test/DownloadFileTest.java b/oc_framework-test-project/oc_framework-test-test/src/com/owncloud/android/oc_framework_test_project/test/DownloadFileTest.java index f981f0b2..74cfb400 100644 --- a/oc_framework-test-project/oc_framework-test-test/src/com/owncloud/android/oc_framework_test_project/test/DownloadFileTest.java +++ b/oc_framework-test-project/oc_framework-test-test/src/com/owncloud/android/oc_framework_test_project/test/DownloadFileTest.java @@ -25,6 +25,7 @@ import com.owncloud.android.oc_framework.operations.RemoteOperationResult; import com.owncloud.android.oc_framework_test_project.TestActivity; import android.test.ActivityInstrumentationTestCase2; +import android.util.Log; /** * Class to test Download File Operation @@ -34,11 +35,14 @@ import android.test.ActivityInstrumentationTestCase2; public class DownloadFileTest extends ActivityInstrumentationTestCase2 { - /* Files to download. This folder must exist on the account */ + private final String TAG = DownloadFileTest.class.getSimpleName(); + + /* Files to download. These files must exist on the account */ private final String mRemoteFilePng = "/fileToDownload.png"; private final String mRemoteFileChunks = "/fileToDownload.mp4"; private final String mRemoteFileSpecialChars = "/@file@download.png"; private final String mRemoteFileSpecialCharsChunks = "/@file@download.mp4"; + private final String mRemoteFileNotFound = "/fileNotFound.png"; /* This file mustn't exist on the account */ private String mCurrentDate; @@ -106,4 +110,16 @@ public class DownloadFileTest extends ActivityInstrumentationTestCase2