mirror of
https://github.com/owncloud/android-library.git
synced 2025-09-06 23:52:18 +00:00
Update comment, error handling and indentation in the automatic test
This commit is contained in:
parent
57aa370be0
commit
573afa1538
@ -136,32 +136,32 @@ public class UpdatePublicShareTest extends RemoteTest {
|
|||||||
if (result.isSuccess()){
|
if (result.isSuccess()){
|
||||||
mShare = (OCShare) result.getData().get(0);
|
mShare = (OCShare) result.getData().get(0);
|
||||||
} else{
|
} else{
|
||||||
mShare = null;
|
Utils.logAndThrow(LOG_TAG, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the folder
|
// Create the folder
|
||||||
mFullPath2FolderToShare = mBaseFolderPath + FOLDER_TO_SHARE;
|
mFullPath2FolderToShare = mBaseFolderPath + FOLDER_TO_SHARE;
|
||||||
result = getActivity().createFolder(
|
result = getActivity().createFolder(
|
||||||
mFullPath2FolderToShare,
|
mFullPath2FolderToShare,
|
||||||
true);
|
true);
|
||||||
if (!result.isSuccess()) {
|
if (!result.isSuccess()) {
|
||||||
Utils.logAndThrow(LOG_TAG, result);
|
Utils.logAndThrow(LOG_TAG, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Share the folder privately with a group
|
// Share the folder publicly via link
|
||||||
result = getActivity().createShare(
|
result = getActivity().createShare(
|
||||||
mFullPath2FolderToShare,
|
mFullPath2FolderToShare,
|
||||||
ShareType.PUBLIC_LINK,
|
ShareType.PUBLIC_LINK,
|
||||||
"",
|
"",
|
||||||
false,
|
false,
|
||||||
"",
|
"",
|
||||||
OCShare.READ_PERMISSION_FLAG);
|
OCShare.READ_PERMISSION_FLAG);
|
||||||
|
|
||||||
if (result.isSuccess()){
|
if (result.isSuccess()){
|
||||||
mFolderShare = (OCShare) result.getData().get(0);
|
mFolderShare = (OCShare) result.getData().get(0);
|
||||||
} else{
|
} else{
|
||||||
mFolderShare = null;
|
Utils.logAndThrow(LOG_TAG, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.v(LOG_TAG, "Remote fixtures created.");
|
Log.v(LOG_TAG, "Remote fixtures created.");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user