mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +00:00
Added automated test for creation of the share operation with edit permission enabled
This commit is contained in:
parent
46f930f6cf
commit
5c68c3f605
@ -164,7 +164,13 @@ public class UpdatePublicShareTest extends RemoteTest {
|
||||
updateShare.setExpirationDate(expirationDateInMillis);
|
||||
result = updateShare.execute(mClient);
|
||||
assertTrue(result.isSuccess());
|
||||
|
||||
|
||||
// Update Share with edit permission
|
||||
updateShare = new UpdateRemoteShareOperation(mShare.getRemoteId());
|
||||
updateShare.setPublicUpload(true);
|
||||
result = updateShare.execute(mClient);
|
||||
assertTrue(result.isSuccess());
|
||||
|
||||
// unsuccessful test
|
||||
// Update Share with expiration date in the past
|
||||
updateShare = new UpdateRemoteShareOperation(mShare.getRemoteId());
|
||||
@ -173,7 +179,7 @@ public class UpdatePublicShareTest extends RemoteTest {
|
||||
updateShare.setExpirationDate(expirationDateInMillis);
|
||||
result = updateShare.execute(mClient);
|
||||
assertFalse(result.isSuccess());
|
||||
|
||||
|
||||
// Unshare the file before the unsuccessful tests
|
||||
RemoveRemoteShareOperation unshare = new RemoveRemoteShareOperation((int) mShare.getRemoteId());
|
||||
result = unshare.execute(mClient);
|
||||
|
Loading…
x
Reference in New Issue
Block a user