@@ -9,8 +9,6 @@ package com.owncloud.android.lib.resources.shares
99
1010import com.owncloud.android.AbstractIT
1111import com.owncloud.android.lib.resources.files.CreateFolderRemoteOperation
12- import com.owncloud.android.lib.resources.shares.attributes.ShareAttributes
13- import com.owncloud.android.lib.resources.shares.attributes.ShareAttributesJsonHandler
1412import com.owncloud.android.lib.resources.status.GetStatusRemoteOperation
1513import com.owncloud.android.lib.resources.status.NextcloudVersion
1614import com.owncloud.android.lib.resources.status.OwnCloudVersion
@@ -32,23 +30,6 @@ class CreateShareRemoteOperationIT : AbstractIT() {
3230 Assume .assumeTrue(ownCloudVersion?.isNewerOrEqual(NextcloudVersion .nextcloud_24) == true )
3331 }
3432
35- @Test
36- fun createShareWithNoteAndAttributes () {
37- val attributes = listOf (
38- ShareAttributes .createDownloadAttributes(
39- true ,
40- ownCloudVersion?.isNewerOrEqual(NextcloudVersion .nextcloud_30) == true
41- )
42- )
43- val note = " Note with attributes"
44- val path = " /shareWithAttributes/"
45-
46- createFolder(path)
47- val share = createShare(path, " admin" , note, ShareAttributesJsonHandler .toJson(attributes))
48- assertEquals(note, share.note)
49- assertEquals(attributes, ShareAttributesJsonHandler .toList(share.attributes))
50- }
51-
5233 @Test
5334 fun createShareWithNote () {
5435 val note = " This is the note"
0 commit comments