From 6ecc023708aac90b29a1376ab58797d1cde9c9ae Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 5 Mar 2019 09:18:32 +0100 Subject: [PATCH] show info in case of error Signed-off-by: tobiasKaminsky --- src/androidTest/java/com/owncloud/android/FileIT.java | 4 ++-- src/androidTest/java/com/owncloud/android/UploadIT.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/androidTest/java/com/owncloud/android/FileIT.java b/src/androidTest/java/com/owncloud/android/FileIT.java index aeed60d5ea..65b7079c3b 100644 --- a/src/androidTest/java/com/owncloud/android/FileIT.java +++ b/src/androidTest/java/com/owncloud/android/FileIT.java @@ -29,7 +29,7 @@ public class FileIT extends AbstractIT { SyncOperation syncOp = new CreateFolderOperation(path, true); RemoteOperationResult result = syncOp.execute(client, getStorageManager()); - assertTrue(result.isSuccess()); + assertTrue(result.toString(), result.isSuccess()); // folder exists assertTrue(getStorageManager().getFileByPath(path).isFolder()); @@ -46,7 +46,7 @@ public class FileIT extends AbstractIT { SyncOperation syncOp = new CreateFolderOperation(path, true); RemoteOperationResult result = syncOp.execute(client, getStorageManager()); - assertTrue(result.isSuccess()); + assertTrue(result.toString(), result.isSuccess()); // folder exists assertTrue(getStorageManager().getFileByPath(path).isFolder()); diff --git a/src/androidTest/java/com/owncloud/android/UploadIT.java b/src/androidTest/java/com/owncloud/android/UploadIT.java index c4d588eed2..527d5ca413 100644 --- a/src/androidTest/java/com/owncloud/android/UploadIT.java +++ b/src/androidTest/java/com/owncloud/android/UploadIT.java @@ -28,7 +28,7 @@ public class UploadIT extends AbstractIT { RemoteOperationResult result = testUpload(ocUpload); - assertTrue(result.isSuccess()); + assertTrue(result.toString(), result.isSuccess()); // cleanup new RemoveFileOperation("/testUpload/", false, account, false, context).execute(client, getStorageManager()); @@ -41,7 +41,7 @@ public class UploadIT extends AbstractIT { RemoteOperationResult result = testUpload(ocUpload); - assertTrue(result.isSuccess()); + assertTrue(result.toString(), result.isSuccess()); // cleanup new RemoveFileOperation("/testUpload/", false, account, false, context).execute(client, getStorageManager()); @@ -54,7 +54,7 @@ public class UploadIT extends AbstractIT { RemoteOperationResult result = testUpload(ocUpload); - assertTrue(result.isSuccess()); + assertTrue(result.toString(), result.isSuccess()); // cleanup new RemoveFileOperation("/testUpload/", false, account, false, context).execute(client, getStorageManager()); @@ -101,7 +101,7 @@ public class UploadIT extends AbstractIT { newUpload.setRemoteFolderToBeCreated(); RemoteOperationResult result = newUpload.execute(client, getStorageManager()); - assertTrue(result.isSuccess()); + assertTrue(result.toString(), result.isSuccess()); // cleanup new RemoveFileOperation("/testUpload/", false, account, false, context).execute(client, getStorageManager());